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

ENV_CONVERSIONS is not applied when setting env #12904

Closed
D3V1LC0D3R opened this issue May 19, 2024 · 2 comments
Closed

ENV_CONVERSIONS is not applied when setting env #12904

D3V1LC0D3R opened this issue May 19, 2024 · 2 comments
Labels
needs-triage An issue that hasn't had any proper look

Comments

@D3V1LC0D3R
Copy link

Describe the bug

When updating or setting $env and/or calling load-env, $env.ENV_CONBERSIONS for the affected vars is not applied.

When direnv for example updates the PATH with a ":" seperated string it overrides the list that was there before.

How to reproduce

  1. Start nushell and observe the conversions working

  2. Edit the PATH or other vars that should get converted but dont

Expected behavior

I expected nu to apply those conversions everytime $env is changed.

Screenshots

No response

Configuration

k v
version 0.87.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.73.0 (cc66ad468 2023-10-03) (built from a source tarball)
cargo_version cargo 1.73.0
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash, which, zip
installed_plugins

Additional context

Using nixos and home-manager

@D3V1LC0D3R D3V1LC0D3R added the needs-triage An issue that hasn't had any proper look label May 19, 2024
@fdncred
Copy link
Collaborator

fdncred commented May 19, 2024

wow 0.87.0 is pretty old considering we're on 0.93.0, maybe 6 months old by now. can you check to see if you see a problem in the current version of nushell?

@D3V1LC0D3R
Copy link
Author

That seems to have been the problem, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage An issue that hasn't had any proper look
Projects
None yet
Development

No branches or pull requests

2 participants