Skip to content

NU_LIB_DIRS environment variable no longer working #8870

@kubouch

Description

@kubouch

Describe the bug

Setting let-env NU_LIB_DIRS inside env.nu has no effect. Only const NU_LIB_DIRS works.

How to reproduce

  1. Inside env.nu: Set let-env NU_LIB_DIRS = [ ($nu.config-path | path dirname | path join 'scripts') ]
  2. const NU_LIB_DIRS is not set anywhere
  3. Put a file (script.nu) to the scripts folder
  4. source script.nu inside config.nu
  5. Error: File not found

Expected behavior

Should work the same as before.

Screenshots

No response

Configuration

key value
version 0.78.1
branch main
commit_hash 99c0a25
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.66.1 (90743e729 2023-01-10)
rust_channel 1.66.1-x86_64-unknown-linux-gnu
cargo_version cargo 1.66.1 (ad779e08b 2023-01-10)
build_time 2023-04-13 00:14:22 +03:00
build_rust_channel release
features default, zip
installed_plugins from eml, from ics, from ini, from vcf, gstat, inc, query, query json, query web, query xml

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:parserIssues related to parsingcategory:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions