This doesn't need to be part of expand_template (it could be a forked rule) and should probably allow other flag types as well.
My current specific motivating case is wanting to inject a CI provided build version into published build artifacts, but I've had other cases when this would have been useful and the more general solution of substituting arbitrary flag is easy enough that there's no point in solving just the specific case.
This doesn't need to be part of
expand_template(it could be a forked rule) and should probably allow other flag types as well.My current specific motivating case is wanting to inject a CI provided build version into published build artifacts, but I've had other cases when this would have been useful and the more general solution of substituting arbitrary flag is easy enough that there's no point in solving just the specific case.