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

Added option and description for nix store auto-optimisation. #24134

Merged
merged 1 commit into from Mar 20, 2017
Merged

Added option and description for nix store auto-optimisation. #24134

merged 1 commit into from Mar 20, 2017

Conversation

pstn
Copy link
Contributor

@pstn pstn commented Mar 20, 2017

Motivation for this change

I didn't know of the auto-optimise functionality until today. Adding it as an option with a description makes it much more discoverable. Description is from man nix.conf

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@pstn, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @MarcWeber and @peti to be potential reviewers.

@edolstra edolstra merged commit 337f731 into NixOS:master Mar 20, 2017
@pstn pstn deleted the nix-auto-optimise branch March 20, 2017 19:12
@vcunat
Copy link
Member

vcunat commented Mar 21, 2017

For reference, fixed up and picked to 17.03 as of e87e108.

@@ -46,6 +46,7 @@ let
binary-caches = ${toString cfg.binaryCaches}
trusted-binary-caches = ${toString cfg.trustedBinaryCaches}
binary-cache-public-keys = ${toString cfg.binaryCachePublicKeys}
auto-optimise-store = ${toString cfg.autoOptimiseStore}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes nixops deploy to fail:

gitlab............> error: configuration option ‘auto-optimise-store’ should be either ‘true’ or ‘false’, not ‘’
gitlab............> error: configuration option ‘auto-optimise-store’ should be either ‘true’ or ‘false’, not ‘’
gitlab............> unable to connect to ‘root@git.mayflower.de’; falling back to old closure copying method
gitlab............> error: configuration option ‘auto-optimise-store’ should be either ‘true’ or ‘false’, not ‘’
gitlab............> Died at /nix/store/pjk50qzcs5n3x43q8hb4556g4xm22rr3-nix-1.11.7/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Nix/CopyClosure.pm line 100.

I have a fix that I will push in a few minutes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already fixed in c808801.

@fpletz fpletz added this to the 17.03 milestone Mar 21, 2017
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.

None yet

6 participants