Skip to content

FIX: load the library before anything else - #8774

Merged
fdncred merged 1 commit into
nushell:mainfrom
amtoine:fix/stdlib/load-order
Apr 6, 2023
Merged

fdncred merged 1 commit into
nushell:mainfrom
amtoine:fix/stdlib/load-order

Conversation

@amtoine

@amtoine amtoine commented Apr 6, 2023 •

Copy link
Copy Markdown
Member

should close #8772.

Description

okey, i think that was pretty easy in the end 😌
i just move the library loading to the top of

  • the script branch
  • the command branch
  • the REPL branch

more precisely, the calls to load_standard_library now occurs BEFORE the loading of the config!

User-Facing Changes

users will now be able to use std ... from their config.

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🔴 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

$nothing

@fdncred
fdncred merged commit d93953a into nushell:main Apr 6, 2023
@fdncred

fdncred commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

Thanks.

@amtoine
amtoine deleted the fix/stdlib/load-order branch April 7, 2023 15:49
@fdncred fdncred added the A:std-library Defining and improving the standard library written in Nu label Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:std-library Defining and improving the standard library written in Nu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cannot load std from a config file

2 participants