-
Notifications
You must be signed in to change notification settings - Fork 131
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
Some Cargo-Make global environment variables are not available in plugin context #978
Comments
But i did notice that for the two failing variables, the plugin script could be changed to:
and then it resolves properly. But this doesn't work for all global cargomake env vars. If this is not a bug in behaviour, could you document which environment variables are not accessible from plugin contexts? |
CARGO_MAKE_CURRENT_TASK_XXX will never be available for the plugin itself. |
Ah. So its only |
I'll add. thanks for the feedback. |
docs updated |
Describe The Bug
I've found that there are inconsistencies in what global cargo make environment variables are available in task context vs. in plugin context.
To Reproduce
Makefile.toml:
Output:
As you can see in the above output,
CARGO_MAKE_CARGO_HOME
andCARGO_MAKE_CRATE_CUSTOM_TRIPLE_TARGET_DIRECTORY
resolve properly, butCARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY
andCARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE
fail to resolve when run from a plugin. I couldn't find any documentation calling out this behaviour, so I think this is a bug.The text was updated successfully, but these errors were encountered: