build: further improvements for passthrough functionality#494
build: further improvements for passthrough functionality#494medubelko merged 8 commits intocanonical:devfrom
Conversation
dwilding
left a comment
There was a problem hiding this comment.
This seems like a reasonable change, thanks.
I was wondering whether it's worth introducing the DOCS_... variables in one release and then removing the old variables in a subsequent release. I guess it depends how much people have hardcoded the variable names outside the Makefile.
E.g., I searched for uses of BUILDDIR in YAML files and got two results:
- In ops, which I can update in tandem with the next starter pack version
- In starbase, which I'm sure you already know about
There are also projects such as microcloud, which has a custom Makefile that calls Makefile.sp with BUILDDIR set - but this is an older setup of the starter pack.
These are the uses I could find after a couple of quick searches. Do you have a better feel for how disruptive the changes might be? If it's not much more than what I found, I don't think there's any need for a staged rollout.
I searched for I want to roll out a doc this week that will guide developers on how to consume the Makefile, so the intent of this PR is to get the ducks lined up before we describe the activity. |
e14a7d9 to
cdc4ac1
Compare
For added security, consider having the |
I don't think we should, since the purpose of these changes is to make it's so it's not possible to collide with these names. If a var like |
This further helps projects that call the Makefile from a root build system.
Add a `DOCS_` prefix to common vars in Makefile. The build environment has several variables with popular names such as `BUILDDIR` and `SOURCEDIR`. These can confuse developers of projects where the docs aren't at the root, and could collide with their root build systems.
Remove old var names. Make variables more consistent: - `DOCS_` for vars specific to the docs build. - `<tool>_` for tool-specific vars, such as `VALE_DIR`. Reorganise the list of vars.
01e9516 to
26c953a
Compare
*DIRand venv vars conditional. This further helps projects that call the Makefile from a root build system.DOCS_prefix to common vars in Makefile. The build environment has several variables with popular names such asBUILDDIRandSOURCEDIR. These can confuse developers of projects where the docs aren't at the root, and could collide with their root build systems.CHANGELOG.mdwith relevant non-documentation file changes?[ ] Have you updated the documentation for this change?