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 warning on nix lazy-trees branch #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Artturin
Copy link
Contributor

warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like src = ./.tosrc = builtins.path { path = ./.; name = "source"; }.

@astro
Copy link
Owner

astro commented Oct 15, 2024

Or, just src = self;?

How can I reproduce that warning?

`warning: Performing inefficient double copy of path 'X' to the store. This can typically be avoided by rewriting an attribute like `src = ./.` to `src = builtins.path { path = ./.; name = "source"; }`.`
@Artturin
Copy link
Contributor Author

Or, just src = self;?

Good idea.

How can I reproduce that warning?

You have to use this nix branch NixOS/nix#6530

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