-
Notifications
You must be signed in to change notification settings - Fork 372
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: Improve message after the env creating with micromamba #2425
Conversation
b2d8ef2
to
de76d2d
Compare
note: I made some changes in the environment files, and gitignore because it was something that popped-up locally .. let me know if it is ok to keep that changes, otherwise I am also glad to remove that here. thanks! |
btw, I opened this PR in draft mode just to get some inputs/reviews in early stage ... I am checking now how to get the environment name to add it to the message. but if anyone could give some tips it would be very appreciated :) |
just for the record, this is how the output looks like:
|
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.
Thanks for the suggestion!
This files and the IO mechanism will go through a redesign.
I'm OK to add this with [micro]mamba
and <environment>
for now so that we know to add it in the refactoring.
Perhaps leave a comment //TODO add executable name
TODO add environment name/prefix
.
.gitignore
Outdated
libmamba/Makefile | ||
libmamba/libmambaConfig.cmake | ||
libmamba/libmambaConfigVersion.cmake | ||
libmamba/libmambaTargets.cmake | ||
sometestfile.txt |
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.
Let's leave this out o this PR. We do use cmake -B build/
to have the CMake generated files separate in the build/
direcrtory.
Then you can cmake --build build/
...
@@ -3,7 +3,7 @@ channels: | |||
- conda-forge | |||
dependencies: | |||
- cxx-compiler | |||
- cmake | |||
- cmake >=3.16 |
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'm OK with this, it's the one specified in CMakeLists.txt
libmamba/src/core/transaction.cpp
Outdated
Console::stream() << "\nTransaction finished"; | ||
Console::stream() << "\nTo activate this environment, use:\n"; | ||
Console::stream() << " $ micromamba activate <placeholder>"; | ||
Console::stream() << "\nOr to execute a single command in this environment, use:\n"; | ||
Console::stream() << " $ micromamba run -n <placeholder> mycommand\n"; |
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.
You can log that in a single string.
thanks for the review @AntoinePrv , appreciate that! |
5a5bbfb
to
960dc5e
Compare
@AntoinePrv, I already applied the changes you requested. |
Thanks for this PR! |
oh nice! I missed that! thank you so much for the tip! I will install the pre-commit hooks here! thanks! |
@xmnlab already done for you :) |
@AntoinePrv thank you so much! I will take a look into that in a bit :) |
b99d5ce
to
7845838
Compare
@AntoinePrv thank you so much for your review! and all the help :) let me know if there is anything else I can do about this PR :) thanks! |
7845838
to
5d71f6d
Compare
<< "To activate this environment, use:\n\n" | ||
<< " $ [micro]mamba activate <environment>\n\n" | ||
<< "Or to execute a single command in this environment, use:\n\n" | ||
<< " $ [micro]mamba run -n <environment> mycommand\n"; |
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.
This message is being triggered in all transactions, install, update, etc, and not only environment creation. It is a bit noisy that way b/c for most of those the user is already in the environment and defeats the purposes of the message.
PS: It would be nice to change the <environment>
for the actual name of the environment, mimicking conda's behavior and making the message "copy-n-pastable."
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.
This message is being triggered in all transactions, install, update, etc, and not only environment creation. It is a bit noisy that way b/c for most of those the user is already in the environment and defeats the purposes of the message.
Hmm I agree!
PS: It would be nice to change the
<environment>
for the actual name of the environment, mimicking conda's behavior and making the message "copy-n-pastable."
It's already the case on the last version of the code :)
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.
It's already the case on the last version of the code :)
Awesome. Waiting for the new release.
This PR aims to improve the message presented after the environment creation with micromamba.
Fix #2407