nushell / nushell/nushell

Warn when loading empty mod.nu

Open
#11,573 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

category:enhancement status:needs-triage
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 19h
Merged PRs (30d)
85

Description

Related problem

#11157 changed the behavior of empty mod.nu reexporting sibling files and child directories. It fits Nu's philosophy of preferring explicit over implicit but broke my scripts and config with no hint why or how to fix it.

Describe the solution you'd like

Empty mod.nu isn't s sensible construct anymore so I think it'd be helpful to explain users should explicitly export use subcommands and export module submodules and either link to the new documentation or #11133 for rationale.

Describe alternatives you've considered

No response

Additional context and details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the behavior change described in #11157 and the rationale in #11133. Locate the code and tests responsible for loading an empty mod.nu, then determine how the warning should point users toward explicit export use and export module declarations or the relevant documentation. Done means empty mod.nu produces a helpful warning without changing the intended explicit behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.