-
Notifications
You must be signed in to change notification settings - Fork 112
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
Hook Environment Variables Mirrored in Template Placeholders #816
Comments
Looks like the only ones missing are
Not to say "no" but to further explore this, is there a reason you need access to these on the command-line, rather than using a script to wrap them that can access them? |
Mainly repository hygiene. I could add a script at the root of each package that accesses the To address the issue that I really^2 want is the option to run a pre-release hook only once at the root of the workspace when releasing the workspace. The way I'm versioning/releasing the workspace is by sharing versions with all the packages and releasing the whole workspace at once. The behavior I expected originally when adding the |
My main concern with supporting this is In the past, we've recommended people pick a representative crate to run a hook. Is there a reason you can't do that here? It sounds like you want one post-workspace-release hook but instead you run a hook after every package. Is it happenstance that your scripts don't interfere with each other or do you have to take extra steps for that? |
I appreciate the add for having placeholders resolve in pre-release hooks.
Could we expand this functionality to also include some of the ENV vars that are passed to the hook? I would love the ability to define my hook at the root of my workspace and run it anywhere, regardless of the shape/depth of the workspace. This would require me to expand the
WORKSPACE_ROOT
env var in the pre-release-hook argument list. Which is not possible since it is not a shell.Thanks!
The text was updated successfully, but these errors were encountered: