Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix trace warning for missing meta.mainProgram #38

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vtgen
Copy link

@vtgen vtgen commented Feb 3, 2024

i barely have any idea of what i am doing as evidenced by my experimentation below, but i think this is right.

Without this change I get e.g.:

trace: warning: getExe: Package fmt does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when th
e assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control i
ts definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".

### ️🔨 Welcome to the Nix devshell ###

Available commands:

## Commands

  , fmt  : format the whole repo

(Run ',' to display this menu again)  

nix/wrapper.nix Outdated Show resolved Hide resolved
nix/wrapper.nix Outdated Show resolved Hide resolved
vtgen and others added 2 commits March 25, 2024 15:51
Co-authored-by: Sridhar Ratnakumar <[email protected]>
Co-authored-by: Sridhar Ratnakumar <[email protected]>
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.

2 participants