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

Merged
merged 1 commit into from
Nov 1, 2024
Merged

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

@astro astro merged commit 435226d into astro:main Nov 1, 2024
8 checks passed
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