Skip to content

Fix nushell env for Windows #3880

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

Merged
merged 12 commits into from
Apr 25, 2025
Merged

Conversation

cvanelteren
Copy link
Contributor

@cvanelteren cvanelteren commented Apr 7, 2025

This is a fixed pr initialized by @Wuvist. Unfortunately he is MIA. I fixed the commits on that PR and want to push this to the repo to ensure that new users won't have this issue.

What does this PR do?

My initial implementation works well for unix but does not generalize well for windows-based machines. This PR addresses this while fixing an issue that the path was converted to a string.

@cvanelteren
Copy link
Contributor Author

pinging @AntoinePrv

Copy link

codecov bot commented Apr 24, 2025

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@306e454). Learn more about missing BASE report.

Files with missing lines Patch % Lines
libmamba/src/core/activation.cpp 0.00% 6 Missing ⚠️
libmamba/src/core/shell_init.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3880   +/-   ##
=======================================
  Coverage        ?   62.91%           
=======================================
  Files           ?      300           
  Lines           ?    37124           
  Branches        ?     2780           
=======================================
  Hits            ?    23356           
  Misses          ?    13716           
  Partials        ?       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AntoinePrv
Copy link
Member

I'm no nu expert but this seems good. One question @cvanelteren, does this break currently initiated nushells? For example, if one user has micromamba shell init -z nu with a previous version, will the updating to the next version break their environment?

@AntoinePrv AntoinePrv added the release::bug_fixes For PRs fixing bugs label Apr 25, 2025
@AntoinePrv AntoinePrv changed the title Fix nushell env Fix nushell env for Windows Apr 25, 2025
@cvanelteren
Copy link
Contributor Author

The -z is a mistake or? I believe this code will update the stuff within the # added by micromamba. I can't for sure test on other platforms than linux atm but for linux it works fine (previous version did too).

@AntoinePrv AntoinePrv merged commit 3364c8e into mamba-org:main Apr 25, 2025
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release::bug_fixes For PRs fixing bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants