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

Follow symlinks of tools in nixpkgs_cc_configure #67

Merged
merged 1 commit into from Jan 29, 2019
Merged

Follow symlinks of tools in nixpkgs_cc_configure #67

merged 1 commit into from Jan 29, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jan 29, 2019

We noticed poor http cache hit rates, even on the same machine when running the
same build from a different working tree. By diffing the execution log it was clear that
the path to cc_toolchain was going via the workspace's output_path, which subsequently
caused mismatching hashes.

This changes nixpkgs_cc_configure to follow symlinks of the binaries given to overriden_tools.
With this change the execution log shows nix-store paths as expected and the cache hit rates
are as expected.

This should result in build actions that use the
nix-store path to execute, rather than the workspace
specific output path, which kills distributed caching.
@mboes
Copy link
Member

mboes commented Jan 29, 2019

@shmish111 might be the cause of what you were noticing too.

@mboes mboes merged commit 58dd6bc into tweag:master Jan 29, 2019
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.

1 participant