-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review compilation-related env vars in Spicy feature #44
Comments
The general idea with suppressing compiler- and linker-related env vars is that users might set these to undesirable values which could have an effect on tests compiling C++ files (e.g., tests of plugin installation picking them up). I do not recall a reason why they would be relevant for Spicy since we use namespaced variables like At the very least we should probably move these into the |
I think there is another gotcha: It looks like the env vars are just appended to the file. I've a config that uses multiple alternatives. Hence, the new vars are only added to the last alternative. |
Is that a use case that comes up when combining features this template ships, or something downstream from here? The current "templating" mechanism here is not very smart (e.g., it does not really know the full contents of the file it modifies) but we took some care that certain features here combine compose reasonably, but this is likely impossible in general. |
This came up when combining a custom feature that configures multiple alternatives in |
For Spicy packages, the template manually resets some environment variables in
btest.cfg
:package-template/__init__.py
Lines 195 to 214 in 17c8367
Would be nice to review whether it's worth to keep this and if so, if it makes sense to add this to plugins in general.
The text was updated successfully, but these errors were encountered: