Skip to content
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

./koch runCI should set a custom NIMBLE_DIR to avoid interference; and should honor --nim #755

Open
timotheecour opened this issue Jun 16, 2021 · 2 comments

Comments

@timotheecour
Copy link
Owner

XDG_CONFIG_HOME= ./koch --nim:/pathto/nim runCI
runs some commands that sometimes ignore --nim flag eg:

nimble install -y --nimbleDir:build/deps zip

instead:

scratch below

NIMBLE_DIR=$HOME/.nimble_fake60 XDG_CONFIG_HOME= nimble install --nim:$nimb -y --nimbleDir:build/deps zip

@juancarlospaco
Copy link
Collaborator

I wonder if would be better adding support for "dotenv" file format to stdlib ?. 🤔
Would be like 300 lines at most and provide the "best practice" way to handle all those env vars.

@timotheecour
Copy link
Owner Author

yes, a module to parse dotenv file format (std/formats/dotenv ?) would be useful (refs https://hexdocs.pm/dotenvy/dotenv-file-format.html) and easy to implement (i've implemented this myself as well as the reverse direction from /pathto/bar/baz/foo.txt to $MYENVVAR/fbaz/oo.txt which is also very useful eg for generating less verbose log entries etc)

that said, setting NIMBLE_DIR for runCI can be done independently of that:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants