diff options
author | Puck Meerburg <puck@puckipedia.com> | 2024-04-20 13:08:42 +0000 |
---|---|---|
committer | Puck Meerburg <puck@puckipedia.com> | 2024-04-21 10:46:05 +0000 |
commit | 272c2ff15f40a0979c2509261e4843090cdddb92 (patch) | |
tree | 5deef910542e67f456462e7021951074ec302498 /tests/nixos/github-flakes.nix | |
parent | 111db8b38fd8350d92d72fa17fd3d9e8ef5a0e09 (diff) |
remove extraneous cache entry from github fetcher
This isn't necessary, as it's already covered by the tarball fetcher's
cache.
Change-Id: I85e35f5a61594f27b8f30d82145f92c5d6559e1f
Diffstat (limited to 'tests/nixos/github-flakes.nix')
-rw-r--r-- | tests/nixos/github-flakes.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/nixos/github-flakes.nix b/tests/nixos/github-flakes.nix index 4830be6ac..1954208b9 100644 --- a/tests/nixos/github-flakes.nix +++ b/tests/nixos/github-flakes.nix @@ -119,6 +119,9 @@ in [ { urlPath = "/repos/NixOS/nixpkgs"; dir = nixpkgs-api; } + { urlPath = "/repos/fork/nixpkgs"; + dir = nixpkgs-api; + } { urlPath = "/repos/fancy-enterprise/private-flake"; dir = private-flake-api; } @@ -190,6 +193,10 @@ in client.succeed("nix registry pin nixpkgs") client.succeed("nix flake metadata nixpkgs --tarball-ttl 0 >&2") + # fetching a fork with the same commit ID should fail, even if the revision is cached + client.succeed("nix flake metadata github:NixOS/nixpkgs") + client.fail("nix flake metadata github:fork/nixpkgs") + # Shut down the web server. The flake should be cached on the client. github.succeed("systemctl stop httpd.service") |