-
Notifications
You must be signed in to change notification settings - Fork 70
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
Make profile args take precedence over env #825
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it wouldn't be better to allow multiple arguments in ProfileSpec
group and employ overriding logic (--dev
takes over --release
which takes over --profile
). Because we essentialy also have this problem if the user sets export SCARB_PROFILE=...
in their .rc
file etc.
f3cfe3a
to
fde42f2
Compare
fde42f2
to
4d6b1ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻
4d6b1ed
to
b6f8a5f
Compare
Fixes #849 Removing a test when it's failing isn't a good idea but `cannot_choose_both_release_and_dev` test that created from `cannot_choose_both_release_and_by_name` (in #825) is a duplicate of `cannot_choose_both_dev_and_release` test. It could be fixed by adjusting stderr message assertion to ```sh Usage: scarb[..] --dev --global-cache-dir <DIRECTORY> --global-config-dir <DIRECTORY> <COMMAND> ``` but that would be the exact same thing as `cannot_choose_both_dev_and_release`.
Fixes #849 Removing a test when it's failing isn't a good idea but `cannot_choose_both_release_and_dev` test that created from `cannot_choose_both_release_and_by_name` (in #825) is a duplicate of `cannot_choose_both_dev_and_release` test. It could be fixed by adjusting stderr message assertion to ```sh Usage: scarb[..] --dev --global-cache-dir <DIRECTORY> --global-config-dir <DIRECTORY> <COMMAND> ``` but that would be the exact same thing as `cannot_choose_both_dev_and_release`.
Fixes #823