-
Notifications
You must be signed in to change notification settings - Fork 363
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
fix: Correct mamba env export --json --from-history
#3590
fix: Correct mamba env export --json --from-history
#3590
Conversation
mamba env export --json --from-history
mamba env export --json --from-history
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.
Thank you for this contribution, @mathbunnyru.
Could you add a non-regression test?
output = helpers.run_env("export", "-n", export_env, "--from-history", *flags) | ||
|
||
# json is already parsed | ||
ret = output if json_flag else yaml.safe_load(output) |
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.
@jjerphan I added a test and checked this line fails in the current main
and this tests passes in my branch
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.
LGTM given 🟢 CI checks.
Fix: #3582