-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add config to set ENVVAR to manifest #11
Comments
Good idea! It seems like we could add a folder called |
In the .bat file that runs the binaries if you can add the 'set' command in windows set GO_ROOT=C:\goroot\
set OTHER_ENV=value
runcomand... On linux it would be to edit the |
That's super clever, great idea. |
Should use I think a better approach is support some sort of post-install hooks where you can do those kinds of things:
|
@tbnguyen1407 You’re right, a way to permanently set an envvar would definitely be better. I’m coming around to the idea of post-install hooks, I just don’t like the idea that package maintainers could potentially write the post-install script to run anything. I wouldn’t allow obvious pull requests like that, but I can’t perfectly vet every command. Is there a way we could better secure that route but still allow it? |
Instead of post-install hooks, what about post-install instructions? |
So I've got an idea, but I need a little help to think it through. Let's say we manage Packages can have a I think this would allow us to both set envvars and have additional scripts to add in our shell profiles, so we can set Would love to hear all of your thoughts. It's a tradeoff of security and convenience here. I think this convenience feature would be worth it, and would open up the door to a lot of new packages that currently can't be supported. |
I think this approach is specific to |
Problem
Certain packages require setting envvar for a working installation (e.g. go needs to set GOROOT).
Suggestion
Allow specifying envvars to set in manifest. Sample go manifest from
scoop
The text was updated successfully, but these errors were encountered: