Skip to content

Overwrite the binary caches list when --option binary-caches is used on the command line by the store owner #129

Closed

Description

@shlevy

When an unprivileged user runs a command with --option binary-caches, the daemon puts the specified values into the untrusted-binary-caches option. If that option is defined, download-from-binary-cache.pl will clear the list of caches and only add those specified on the command line.

When a privileged user (one that doesn't need to use the daemon) specifies --option binary-caches, however, download-from-binary-cache.pl will in addition to those listed on the command line add http://nixos.org/binary-cache and caches provided by channels to the caches list (which is in particular a problem when nixos.org is down). The workaround is to specify --option untrusted-binary-caches on the command line, which is pretty unintuitive.

Activity

  1. edolstra commented on Jun 12, 2013

    @edolstra
    Member

    The substituter does not add http://nixos.org/binary-cache, it only adds the caches provided by the channels. This can be disabled by passing --option binary-cache-files "". The actual bug here is that untrusted-binary-caches has the side-effect of effectlively clearing binary-cache-files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions