-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
error-messagesConfusing messages and better diagnosticsConfusing messages and better diagnosticsfeatureFeature request or proposalFeature request or proposalgood first issueQuick win for first-time contributorsQuick win for first-time contributorsnew-cliRelating to the "nix" commandRelating to the "nix" command
Description
Is your feature request related to a problem?
Some packages have multiple binaries with different purposes therefore setting mainProgram is not desirable.
When mainProgram is not set for these packages nix run errors out with
error: unable to execute '/nix/store/abc/bin/xyz': No such file or directory
Proposed solution
A new error for packages that don't have the mainProgram attribute set, something like
error: in 'abc': 'mainProgram' isn't set
Alternative solutions
An option to set mainProgram to null for packages that desire to do so, leaving the default behavior of mainProgram = pname; intact. An error like
error: 'abc' doesn't have a default binary
would be better in this case.
Additional context
Checklist
- checked latest Nix manual (source)
- checked open feature issues and pull requests for possible duplicates
Add 👍 to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
error-messagesConfusing messages and better diagnosticsConfusing messages and better diagnosticsfeatureFeature request or proposalFeature request or proposalgood first issueQuick win for first-time contributorsQuick win for first-time contributorsnew-cliRelating to the "nix" commandRelating to the "nix" command