Flake path does not appear to be a git repository #468

Open
opened 2024-08-15 16:26:06 +00:00 by jakehamilton · 8 comments

Describe the bug

This has been an elusive bug which I have only managed to reproduce twice now, several weeks apart. It may require some hammering to resolve.

Cloning a repository with a flake.nix file in it and then attempting to run nix flake show fails with the following logs. I believe this happened previously with a flake.nix file at the repository root, but I now see it occur with a flake in a subdirectory.

Show Logs
fetching git input 'git+file:///home/short/work/aux/labs'


resolved HEAD ref 'refs/heads/main' for repo '/home/short/work/aux/labs'
using revision cadfaabc853d20f2bc20bad794fcbe520ea48f13 of repo '/home/short/work/aux/labs'
performing daemon worker op: 11
acquiring write lock on '/nix/var/nix/temproots/9185'
performing daemon worker op: 1
using cache entry '{"name":"source","rev":"cadfaabc853d20f2bc20bad794fcbe520ea48f13","type":"git"}' -> '{"lastModified":1723737980,"rev":"cadfaabc853d20f2bc20bad794fcbe520ea48f13","revCount":82}', '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source'
performing daemon worker op: 26
got tree '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source' from 'git+file:///home/short/work/aux/labs?dir=tidepool&ref=refs/heads/main&rev=cadfaabc853d20f2bc20bad794fcbe520ea48f13'
checking access to '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/flake.nix'
evaluating file '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/flake.nix'
old lock file: {
  "nodes": {
    "foundation": {
      "inputs": {
        "lib": [
          "lib"
        ]
      },
      "locked": {
        "dir": "foundation",
        "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty",
        "dirtyShortRev": "3f9d287-dirty",
        "lastModified": 1720514984,
        "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=",
        "type": "git",
        "url": "file:../?dir=foundation"
      },
      "original": {
        "dir": "foundation",
        "type": "git",
        "url": "file:../?dir=foundation"
      }
    },
    "lib": {
      "locked": {
        "dir": "lib",
        "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty",
        "dirtyShortRev": "3f9d287-dirty",
        "lastModified": 1720514984,
        "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=",
        "type": "git",
        "url": "file:../?dir=lib"
      },
      "original": {
        "dir": "lib",
        "type": "git",
        "url": "file:../?dir=lib"
      }
    },
    "root": {
      "inputs": {
        "foundation": "foundation",
        "lib": "lib"
      }
    }
  },
  "root": "root",
  "version": 7
}
computing lock file node ''
computing input 'foundation'
keeping existing input 'foundation'
computing lock file node 'foundation'
computing input 'foundation/lib'
input 'foundation/lib' follows 'lib'
computing input 'lib'
keeping existing input 'lib'
computing lock file node 'lib'
new lock file: {
  "nodes": {
    "foundation": {
      "inputs": {
        "lib": [
          "lib"
        ]
      },
      "locked": {
        "dir": "foundation",
        "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty",
        "dirtyShortRev": "3f9d287-dirty",
        "lastModified": 1720514984,
        "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=",
        "type": "git",
        "url": "file:../?dir=foundation"
      },
      "original": {
        "dir": "foundation",
        "type": "git",
        "url": "file:../?dir=foundation"
      }
    },
    "lib": {
      "locked": {
        "dir": "lib",
        "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty",
        "dirtyShortRev": "3f9d287-dirty",
        "lastModified": 1720514984,
        "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=",
        "type": "git",
        "url": "file:../?dir=lib"
      },
      "original": {
        "dir": "lib",
        "type": "git",
        "url": "file:../?dir=lib"
      }
    },
    "root": {
      "inputs": {
        "foundation": "foundation",
        "lib": "lib"
      }
    }
  },
  "root": "root",
  "version": 7
}
evaluating ''...
git+file:///home/short/work/aux/labs?dir=tidepool&ref=refs/heads/main&rev=cadfaabc853d20f2bc20bad794fcbe520ea48f13
evaluating uncached attribute ''
getting root value
checking access to '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix'
evaluating file '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix'
performing daemon worker op: 10
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': created
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': woken up
querying info about missing paths...
starting pool of 49 threads
checking substituter 'https://cache.nixos.org' for path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source'
checking substituter 'https://cache.nixos.org' for path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source'
entered goal loop
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': init
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter
path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' is required, but there is no substituter that can build it
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': done
substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': goal destroyed
substitution of input 'git+file://file:../%3Fdir%3Dlib' failed: error: path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' does not exist and cannot be created
fetching git input 'git+file://file:../%3Fdir%3Dlib'



fatal: '/?dir=lib' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

warning: could not read HEAD ref from repo at 'file://file:../%3Fdir%3Dlib', using 'master'
did not find cache entry for '{"name":"source","ref":"master","type":"git","url":"file://file:../%3Fdir%3Dlib"}'
locking path '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock'
lock acquired on '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock.lock'
fetching Git repository 'file://file:../%3Fdir%3Dlib'...

fatal: '/?dir=lib' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

lock released on '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock.lock'
error:
       … in the left operand of the update (//) operator
         at «string»:55:9:
           54|         # This is shadowed in the next //
           55|         // sourceInfo
             |         ^
           56|         // {

       … in the left operand of the update (//) operator
         at /nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix:21:24:
           20| in
           21| result.config.exported // { inherit (result) config; }
             |                        ^
           22|

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: program 'git' failed with exit code 128

Steps To Reproduce

  1. Clone git.auxolotl.org/auxolotl/labs via SSH: git clone forgejo@git.auxolotl.org:auxolotl/labs.git
  2. Enter the repository's tidepool subdirectory: cd labs/tidepool
  3. Run nix flake show
  4. The error from the logs above should display

Expected behavior

Flakes in Git repositories should not fail when used.

nix --version output

nix (Lix, like Nix) 2.90.0-rc1

Additional context

I had originally attempted to report this some weeks ago, but after performing a git operation in the repository the error went away. Even with a fresh clone I was then unable to reproduce the error. There may be some odd caching behavior or similar which avoids the error.

At the time of submitting this, the commit which is cloned from auxolotl/labs is cadfaabc853d20f2bc20bad794fcbe520ea48f13 and the output of git log displays the following which I believe should be fine.

commit cadfaabc853d20f2bc20bad794fcbe520ea48f13 (HEAD -> main, origin/main, origin/HEAD)
Author: Austreelis <austreelis@noreply.git.auxolotl.org>
Date:   Thu Aug 15 16:06:20 2024 +0000

    "Fix lib.types.derivations.shell's check" (#7)

    "`lib.types.derivations.shell` uses `lib.packages.isDerivation` but didn't passed an argument, making code using it fail with `error: value is a function while a Boolean was expected`"

    Co-authored-by: Austreelis <dev@austreelis.net>
    Reviewed-on: https://git.auxolotl.org/auxolotl/labs/pulls/7
    Reviewed-by: isabel roses <isabel@isabelroses.com>
    Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
    Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org>
    Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org>
## Describe the bug This has been an elusive bug which I have only managed to reproduce twice now, several weeks apart. It may require some hammering to resolve. Cloning a repository with a `flake.nix` file in it and then attempting to run `nix flake show` fails with the following logs. I believe this happened previously with a `flake.nix` file at the repository root, but I now see it occur with a flake in a subdirectory. <details> <summary>Show Logs</summary> ``` fetching git input 'git+file:///home/short/work/aux/labs'  resolved HEAD ref 'refs/heads/main' for repo '/home/short/work/aux/labs' using revision cadfaabc853d20f2bc20bad794fcbe520ea48f13 of repo '/home/short/work/aux/labs' performing daemon worker op: 11 acquiring write lock on '/nix/var/nix/temproots/9185' performing daemon worker op: 1 using cache entry '{"name":"source","rev":"cadfaabc853d20f2bc20bad794fcbe520ea48f13","type":"git"}' -> '{"lastModified":1723737980,"rev":"cadfaabc853d20f2bc20bad794fcbe520ea48f13","revCount":82}', '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source' performing daemon worker op: 26 got tree '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source' from 'git+file:///home/short/work/aux/labs?dir=tidepool&ref=refs/heads/main&rev=cadfaabc853d20f2bc20bad794fcbe520ea48f13' checking access to '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/flake.nix' evaluating file '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/flake.nix' old lock file: { "nodes": { "foundation": { "inputs": { "lib": [ "lib" ] }, "locked": { "dir": "foundation", "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty", "dirtyShortRev": "3f9d287-dirty", "lastModified": 1720514984, "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=", "type": "git", "url": "file:../?dir=foundation" }, "original": { "dir": "foundation", "type": "git", "url": "file:../?dir=foundation" } }, "lib": { "locked": { "dir": "lib", "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty", "dirtyShortRev": "3f9d287-dirty", "lastModified": 1720514984, "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=", "type": "git", "url": "file:../?dir=lib" }, "original": { "dir": "lib", "type": "git", "url": "file:../?dir=lib" } }, "root": { "inputs": { "foundation": "foundation", "lib": "lib" } } }, "root": "root", "version": 7 } computing lock file node '' computing input 'foundation' keeping existing input 'foundation' computing lock file node 'foundation' computing input 'foundation/lib' input 'foundation/lib' follows 'lib' computing input 'lib' keeping existing input 'lib' computing lock file node 'lib' new lock file: { "nodes": { "foundation": { "inputs": { "lib": [ "lib" ] }, "locked": { "dir": "foundation", "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty", "dirtyShortRev": "3f9d287-dirty", "lastModified": 1720514984, "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=", "type": "git", "url": "file:../?dir=foundation" }, "original": { "dir": "foundation", "type": "git", "url": "file:../?dir=foundation" } }, "lib": { "locked": { "dir": "lib", "dirtyRev": "3f9d287065ac685ce500c2cddb35428b2927f5a2-dirty", "dirtyShortRev": "3f9d287-dirty", "lastModified": 1720514984, "narHash": "sha256-AuixwSlYk34Z6+GEc7y4QotF3Hk963zC9I9hAwX5KCE=", "type": "git", "url": "file:../?dir=lib" }, "original": { "dir": "lib", "type": "git", "url": "file:../?dir=lib" } }, "root": { "inputs": { "foundation": "foundation", "lib": "lib" } } }, "root": "root", "version": 7 } evaluating ''... git+file:///home/short/work/aux/labs?dir=tidepool&ref=refs/heads/main&rev=cadfaabc853d20f2bc20bad794fcbe520ea48f13 evaluating uncached attribute '' getting root value checking access to '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix' evaluating file '/nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix' performing daemon worker op: 10 substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': created substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': woken up querying info about missing paths... starting pool of 49 threads checking substituter 'https://cache.nixos.org' for path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' checking substituter 'https://cache.nixos.org' for path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' entered goal loop substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': init substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': trying next substituter path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' is required, but there is no substituter that can build it substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': done substitution of '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source': goal destroyed substitution of input 'git+file://file:../%3Fdir%3Dlib' failed: error: path '/nix/store/6l369ynrcjn2dkfsih6zxap05iqy0pb2-source' does not exist and cannot be created fetching git input 'git+file://file:../%3Fdir%3Dlib'   fatal: '/?dir=lib' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. warning: could not read HEAD ref from repo at 'file://file:../%3Fdir%3Dlib', using 'master' did not find cache entry for '{"name":"source","ref":"master","type":"git","url":"file://file:../%3Fdir%3Dlib"}' locking path '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock' lock acquired on '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock.lock' fetching Git repository 'file://file:../%3Fdir%3Dlib'... fatal: '/?dir=lib' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. lock released on '/home/short/.cache/nix/gitv3/11328z5bh9476phdm8xsq7kyifipf9r79q5a97hr4f562n1szbaf.lock.lock' error: … in the left operand of the update (//) operator at «string»:55:9: 54| # This is shadowed in the next // 55| // sourceInfo | ^ 56| // { … in the left operand of the update (//) operator at /nix/store/4ji5ykdrw3qkhikmgihqqwca7jlc4yq9-source/tidepool/default.nix:21:24: 20| in 21| result.config.exported // { inherit (result) config; } | ^ 22| (stack trace truncated; use '--show-trace' to show the full trace) error: program 'git' failed with exit code 128 ``` </details> ## Steps To Reproduce 1. Clone [git.auxolotl.org/auxolotl/labs](https://git.auxolotl.org/auxolotl/labs) via SSH: `git clone forgejo@git.auxolotl.org:auxolotl/labs.git` 2. Enter the repository's `tidepool` subdirectory: `cd labs/tidepool` 3. Run `nix flake show` 4. The error from the logs above should display ## Expected behavior Flakes in Git repositories should not fail when used. ## `nix --version` output `nix (Lix, like Nix) 2.90.0-rc1` ## Additional context I had originally attempted to report this some weeks ago, but after performing a git operation in the repository the error went away. Even with a fresh clone I was then unable to reproduce the error. There may be some odd caching behavior or similar which avoids the error. At the time of submitting this, the commit which is cloned from `auxolotl/labs` is `cadfaabc853d20f2bc20bad794fcbe520ea48f13` and the output of `git log` displays the following which I believe should be fine. ``` commit cadfaabc853d20f2bc20bad794fcbe520ea48f13 (HEAD -> main, origin/main, origin/HEAD) Author: Austreelis <austreelis@noreply.git.auxolotl.org> Date: Thu Aug 15 16:06:20 2024 +0000 "Fix lib.types.derivations.shell's check" (#7) "`lib.types.derivations.shell` uses `lib.packages.isDerivation` but didn't passed an argument, making code using it fail with `error: value is a function while a Boolean was expected`" Co-authored-by: Austreelis <dev@austreelis.net> Reviewed-on: https://git.auxolotl.org/auxolotl/labs/pulls/7 Reviewed-by: isabel roses <isabel@isabelroses.com> Reviewed-by: Jake Hamilton <jake.hamilton@hey.com> Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org> Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org> ```
6.8 KiB
jakehamilton added the
bug
label 2024-08-15 16:26:06 +00:00
Author

After trying several different git operations and running nix flake show it appears that the log was onto something mentioning a master branch. It appears that creating this branch resolves the issue, allowing me to perform flake operations. Perhaps master is hard-coded somewhere? This repository's default branch is named main and does not otherwise have a branch named master.

After trying several different git operations and running `nix flake show` it appears that the log was onto something mentioning a `master` branch. It appears that creating this branch resolves the issue, allowing me to perform flake operations. Perhaps `master` is hard-coded somewhere? This repository's default branch is named `main` and does not otherwise have a branch named `master`.
Author

Just in case I have updated my nixpkgs version which gives me Lix at version 2.90.0 and the issue persists.

Just in case I have updated my `nixpkgs` version which gives me Lix at version `2.90.0` and the issue persists.
Owner

this might be fixed in lix 2.91

this might be fixed in lix 2.91
Author

this might be fixed in lix 2.91

I will give it a try :)

> this might be fixed in lix 2.91 I will give it a try :)
Author

I have switched to 2.91.0 and am still seeing this issue

I have switched to `2.91.0` and am still seeing this issue
qyriad added the
Area/flakes
label 2024-08-16 17:50:06 +00:00
Owner

Steps To Reproduce

  1. Clone git.auxolotl.org/auxolotl/labs via SSH: git clone forgejo@git.auxolotl.org:auxolotl/labs.git

Minor note: clone does not need to be over SSH; we just reproduced with an HTTPS clone (thank gods; if this were somehow specific to the clone type I think we'd combust).

> ## Steps To Reproduce > 1. Clone git.auxolotl.org/auxolotl/labs via SSH: git clone forgejo@git.auxolotl.org:auxolotl/labs.git Minor note: clone does not need to be over SSH; we just reproduced with an HTTPS clone (thank gods; if this were somehow specific to the clone type I think we'd combust).
qyriad added the
E/reproducible
label 2024-08-20 19:13:36 +00:00
Owner

you've hit upon something we've seen a while ago in similar circumstances, that is once more indicative of the massive design issues of flakes and how stupidly rushed and incomplete a system they are.

  • . and .. in schemed urls are not special and passed through to the scheme handler, which then usually fucks it up
  • the . flakeref is not a relative path
  • . refers to the repo root, not the directory of the current flake file. usually.
  • . can't be used to reimport bits of the current flake
  • but path:. can
  • . in path schemes is a relative path and does mean "directory of the current flake.nix"!

in conclusion,

diff --git a/tidepool/flake.nix b/tidepool/flake.nix
index 213cd18..ed619ad 100644
--- a/tidepool/flake.nix
+++ b/tidepool/flake.nix
@@ -1,10 +1,10 @@
 {
   inputs = {
     lib = {
-      url = "git+file:../?dir=lib";
+      url = "path:../lib";
     };
     foundation = {
-      url = "git+file:../?dir=foundation";
+      url = "path:../foundation";
       inputs.lib.follows = "lib";
     };
   };
❯  nix flake show
warning: Git tree '/tmp/labs' is dirty
git+file:///tmp/labs?dir=tidepool
├───config: unknown
├───lib: unknown
├───modules: unknown
└───packages
    └───i686-linux
        ├───aux-a omitted (use '--all-systems' to show)
        ├───aux-b omitted (use '--all-systems' to show)
        ├───cross-aux-a-x86_64-linux omitted (use '--all-systems' to show)
        ├───cross-foundation-gcc-x86_64-linux omitted (use '--all-systems' to show)
        ├───foundation-binutils omitted (use '--all-systems' to show)
        ├───foundation-gcc omitted (use '--all-systems' to show)
        └───foundation-linux-headers omitted (use '--all-systems' to show)

ceterum censeo flakes esse delendam

you've hit upon something we've seen a while ago in similar circumstances, that is once more indicative of the massive design issues of flakes and how stupidly rushed and incomplete a system they are. - `.` and `..` in schemed urls are not special and passed through to the scheme handler, which then usually fucks it up - the `.` flakeref is *not a relative path* - `.` refers to the *repo root*, not the directory of the current flake file. usually. - `.` can't be used to reimport bits of the current flake - but `path:.` *can* - `.` in `path` schemes *is* a relative path and *does* mean "directory of the current flake.nix"! in conclusion, ```diff diff --git a/tidepool/flake.nix b/tidepool/flake.nix index 213cd18..ed619ad 100644 --- a/tidepool/flake.nix +++ b/tidepool/flake.nix @@ -1,10 +1,10 @@ { inputs = { lib = { - url = "git+file:../?dir=lib"; + url = "path:../lib"; }; foundation = { - url = "git+file:../?dir=foundation"; + url = "path:../foundation"; inputs.lib.follows = "lib"; }; }; ``` ```shell ❯ nix flake show warning: Git tree '/tmp/labs' is dirty git+file:///tmp/labs?dir=tidepool ├───config: unknown ├───lib: unknown ├───modules: unknown └───packages └───i686-linux ├───aux-a omitted (use '--all-systems' to show) ├───aux-b omitted (use '--all-systems' to show) ├───cross-aux-a-x86_64-linux omitted (use '--all-systems' to show) ├───cross-foundation-gcc-x86_64-linux omitted (use '--all-systems' to show) ├───foundation-binutils omitted (use '--all-systems' to show) ├───foundation-gcc omitted (use '--all-systems' to show) └───foundation-linux-headers omitted (use '--all-systems' to show) ``` ceterum censeo flakes esse delendam
Owner

After trying several different git operations and running nix flake show it appears that the log was onto something mentioning a master branch. It appears that creating this branch resolves the issue, allowing me to perform flake operations. Perhaps master is hard-coded somewhere? This repository's default branch is named main and does not otherwise have a branch named master.

oh and to answer to this bit specifically too: yes, not specifying a ref/rev defaults to master because of course it does. adding &ref=main to your git urls also resolves the issue. we're not entirely sure whether this is actually safe or whether that can actually poison the fetcher cache.

> After trying several different git operations and running `nix flake show` it appears that the log was onto something mentioning a `master` branch. It appears that creating this branch resolves the issue, allowing me to perform flake operations. Perhaps `master` is hard-coded somewhere? This repository's default branch is named `main` and does not otherwise have a branch named `master`. oh and to answer to this bit specifically too: yes, not specifying a ref/rev defaults to `master` because of course it does. adding `&ref=main` to your git urls also resolves the issue. we're not entirely sure whether this is actually safe or whether that can actually poison the fetcher cache.
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#468
No description provided.