nix-super/src/libfetchers
Eelco Dolstra 1ad3328c5e Allow tarball URLs to redirect to a lockable immutable URL
Previously, for tarball flakes, we recorded the original URL of the
tarball flake, rather than the URL to which it ultimately
redirects. Thus, a flake URL like
http://example.org/patchelf-latest.tar that redirects to
http://example.org/patchelf-<revision>.tar was not really usable. We
couldn't record the redirected URL, because sites like GitHub redirect
to CDN URLs that we can't rely on to be stable.

So now we use the redirected URL only if the server returns the
`x-nix-is-immutable` or `x-amz-meta-nix-is-immutable` headers in its
response.
2023-06-13 14:17:45 +02:00
..
attrs.cc Fix conversion from JSON to fetch attributes 2021-01-05 02:06:25 +00:00
attrs.hh Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00
cache.cc libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
cache.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fetch-settings.cc Move some stuff from Settings to a new FetchSettings. 2022-03-01 01:39:25 +00:00
fetch-settings.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fetchers.cc Add a generic check for rev attribute mismatches 2023-06-13 14:13:50 +02:00
fetchers.hh Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00
git.cc Remove unused 2023-05-18 13:26:23 +03:00
github.cc Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00
indirect.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
input-accessor.cc Fix SourcePath::resolveSymlinks() 2023-06-06 11:24:10 +02:00
input-accessor.hh Add some more SourcePath docs 2023-04-24 13:37:51 +02:00
local.mk Don't overwrite user provided lib*_LDFLAGS 2021-08-25 08:59:19 -07:00
mercurial.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
path.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
registry.cc Allow to disable global flake-registry with "" 2022-12-12 15:32:02 +01:00
registry.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
tarball.cc Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00