Skip to content

load default env when user don't specified env path - #6040

Merged
kubouch merged 1 commit into
nushell:mainfrom
WindSoilder:default_env
Jul 14, 2022
Merged

kubouch merged 1 commit into
nushell:mainfrom
WindSoilder:default_env

Conversation

@WindSoilder

@WindSoilder WindSoilder commented Jul 13, 2022 •

Copy link
Copy Markdown
Contributor

Description

Fixes: #5841, #5983
Doesn't affect: #5544
This issue is still exists: #5986, and I can reproduce it in latest main, so it may not belongs to config loading relative issue

Tests

Make sure you've done the following:

  • Add tests that cover your changes, either in the command examples, the crate/tests folder, or in the /tests folder.
  • Try to think about corner cases and various ways how your changes could break. Cover them with tests.
  • If adding tests is not possible, please document in the PR body a minimal example with steps on how to reproduce so one can verify your change works.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace --features=extra to check that all the tests pass

@fdncred

fdncred commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

@kubouch I'm leaving this for you since you reverted several commits like this. Can you please check this?

@kubouch

kubouch commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

It seems good. Can you please check that you can't reproduce #5841 and #5983 with this PR?

It won't fix #5544, you'd need to pass a --config flag which I think is OK.

#5986 might get fixed by my another PR.

@WindSoilder

Copy link
Copy Markdown
Contributor Author

Sure, I've done manually testing for them:

It seems good. Can you please check that you can't reproduce #5841 and #5983 with this PR?

It's checked manually.

It won't fix #5544, you'd need to pass a --config flag which I think is OK.

I confirmed the behavior, need to pass a --config flag to make it working

@kubouch

kubouch commented Jul 14, 2022

Copy link
Copy Markdown
Contributor

OK, let's give it a try then. Thanks!

@kubouch
kubouch merged commit ed50210 into nushell:main Jul 14, 2022
@WindSoilder
WindSoilder deleted the default_env branch July 14, 2022 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Module imports in scripts work only using absolute file path

3 participants