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

The developPackage function generates a different hash every time #30331

Closed
mightybyte opened this issue Oct 11, 2017 · 5 comments
Closed

The developPackage function generates a different hash every time #30331

mightybyte opened this issue Oct 11, 2017 · 5 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@mightybyte
Copy link
Contributor

Issue description

Even when nothing changes in the package, when I use the developPackage function in my default.nix it rebuilds the package every time.

Pinging @shlevy

Steps to reproduce

git clone https://github.com/TaktInc/hadron.git
git checkout builds-with-nix
nix-build
nix-build

Technical details

  • System: Darwin Kernel Version 15.6.0
  • Nix version: nix-env (Nix) 1.11.13
  • Nixpkgs version: 17.09pre111304.5328102325
  • Sandboxing enabled: build-use-sandbox = false
@shlevy
Copy link
Member

shlevy commented Oct 12, 2017

Thanks, will likely take a look this weekend.

@pbogdan
Copy link
Member

pbogdan commented Oct 12, 2017

Could this be related to the ./result symlink that nix-build leaves behind and src being set to ./. which would cause the source to change every time nix-build is invoked? @mightybyte do you see rebuilds if you manually remove ./result before re-running nix-build or run the builds with nix-build --no-out-link?

@mightybyte
Copy link
Contributor Author

Yes, I tried this. If I remove the result symlink, then it gets the cached version. So I guess the developPackage function just has to be modified to filter that out (and/or maybe allow the user to filter out certain files).

@stale
Copy link

stale bot commented Jun 5, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 5, 2020
@cdepillabout
Copy link
Member

haskellPackages.developPackage takes the directory as input as a root argument. If the user wants to filter out certain files before passing to developPackage, that is their responsibility. developPackage doesn't do any automatic filtering on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

4 participants