error: ‘/path/to/repo’ is a shallow Git repository, but shallow repositories are only allowed when
shallow = true;
is specified.
What I’ve tried:
-
builtins.getFlake "git+file:///path/to/repo?shallow=true"
- not working -
builtins.getFlake (builtins.fetchTree { type = "git"; url = "file:///path/to/repo"; shallow = true; })
- not working - removing
.git/shallow
- not working
The only workaround that works: adding fetch-depth: 0
for actions/checkout@v3
in GitHub actions. Are there any other ways to work around this annoying issue?