aboutsummaryrefslogtreecommitdiff
path: root/src/nix/registry.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-12-22 11:31:14 +0100
committerpennae <github@quasiparticle.net>2022-03-03 17:47:50 +0100
commit417aaf4ff7ac1ca501c5a460775fa25d8e078c8a (patch)
tree45ff3c7219ad13a5374db5ee5b3f2ffa8d8095a2 /src/nix/registry.cc
parent2799fe4cdbe77e017544f2fe61ae9baef650dbe6 (diff)
Correctly hijack the `file://` uri scheme with `_NIX_FORCE_HTTP`
Setting the `_NIX_FORCE_HTTP` environment variable is supposed to force `file://` store urls to use the `HttpBinaryCacheStore` implementation rather than the `LocalBinaryCacheStore` one (very useful for testing). However because of a name mismatch, the `LocalBinaryCacheStore` was still registering the `file` scheme when this variable was set, meaning that the actual store implementation picked up on `file://` uris was dependent on the registration order of the stores (itself dependent on the link order of the object files). Fix this by making the `LocalBinaryCacheStore` gracefully not register the `file` uri scheme when the variable is set.
Diffstat (limited to 'src/nix/registry.cc')
0 files changed, 0 insertions, 0 deletions