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

Consecutive nix builds result in different builds and nix store outputs #591

Open
samuela opened this issue Apr 16, 2024 · 1 comment
Open
Labels
needs reproduction Missing a flake which easily reproduces the problem

Comments

@samuela
Copy link

samuela commented Apr 16, 2024

root@b62e2017d34d:/workspaces/bitbop/cherami# nix build .#cherami-build --json
[{"drvPath":"/nix/store/pgdmyk1hp4522mhizncd35nc7paaphpm-cherami-build.drv","outputs":{"out":"/nix/store/kxxrqw6ga3rnz0wvcr6k972rcx9y0yp3-cherami-build"},"startTime":1713302261,"stopTime":1713302470}]
root@b62e2017d34d:/workspaces/bitbop/cherami# nix build .#cherami-build --json
[{"drvPath":"/nix/store/ca13xkr0cyg0yvq32rmr0mlk6lhvfl12-cherami-build.drv","outputs":{"out":"/nix/store/wng10qh7bkpyh36phq7h84pjgbdwpv08-cherami-build"},"startTime":1713303254,"stopTime":1713303460}]

I didn't change any source files in the meantime. Why is it building twice and resulting in 2 different nix store paths?

@samuela samuela changed the title Consecutive nix build result in different builds and nix store outputs Consecutive nix builds result in different builds and nix store outputs Apr 16, 2024
@ipetkov
Copy link
Owner

ipetkov commented Apr 21, 2024

Hi @samuela thanks for the report! Could you please provide a flake that reproduces the issue?

Otherwise please take a look at the following docs:

@ipetkov ipetkov added the needs reproduction Missing a flake which easily reproduces the problem label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Missing a flake which easily reproduces the problem
Projects
None yet
Development

No branches or pull requests

2 participants