Comments (3)
And in addition to that, with a path input, the generated flake.lock
is unusable:
error:
… while updating the lock file of flake 'path:/path/to/flake?lastModified=1708909146&narHash=....'
error: input attribute 'treeHash' not supported by scheme 'github'
from nix.
This is also inconsistent. If I use a git input, nix flake update
fails, but it succeeds for path input path:/path/to/flake
.
from nix.
As this currently blocks me, I did a "quick" bisection finding b36857a as the first bad commit for the treeHash
at least:
b36857ac8d60cbf9a78c3c69f6370d38a14facbc is the first bad commit
commit b36857ac8d60cbf9a78c3c69f6370d38a14facbc
Author: Eelco Dolstra <[email protected]>
Date: Wed Nov 29 12:35:08 2023 +0100
Add a Git-based content-addressed tarball cache
GitArchiveInputScheme now streams tarballs into a Git repository. This
deduplicates data a lot, e.g. when you're fetching different revisions
of the Nixpkgs repo. It also warns if the tree hash returned by GitHub
doesn't match the tree hash of the imported tarball.
src/libfetchers/attrs.cc | 5 ++
src/libfetchers/attrs.hh | 2 +
src/libfetchers/git-utils.cc | 178 +++++++++++++++++++++++++++++++++++++++++++
src/libfetchers/git-utils.hh | 10 +++
src/libfetchers/github.cc | 114 ++++++++++++++++++---------
5 files changed, 272 insertions(+), 37 deletions(-)
from nix.
Related Issues (20)
- Installer bootstrapping issue due to nix 2.20.3 missing from nixpkgs HOT 3
- libunwind.so.8 missing HOT 1
- Expose the flake inputs to the flakes installables
- Make `builtins.fetchTree` return a path as its `outPath` element
- libgit2 based `fetchGit` cannot clone libsass on macOS
- Bad user-readable name for `defaultPackage.*` in nix profile HOT 1
- remote instantiation (`NIX_REMOTE`, `--store`) is an order of magnitude slower than local instantiation + `nix copy` HOT 5
- `derivationOf` primop
- `^..` installable syntax for retrieving "derivation of"
- `nix build` throws error `Assertion 'get() != pointer()' failed` on git dependency HOT 8
- Support pass SSH_AUTH_SOCK to nix-daemon from nix cli
- The sha256 results calculated by nix-prefetch-url and nix are inconsistent HOT 4
- `nix-env -qaP` is missing some packages on master HOT 5
- Sudo nixos-rebuild switch fails when config files moved to and back HOT 2
- Abort in debugger HOT 1
- Storedb interface / alternate store db backends HOT 2
- 'Administrative' shutdown of a Nix remote builder cause complete failure of any remote builds
- aarch64-darwin segfault trying to build system HOT 5
- nix lock can modify lock files in the nix store and corrupt it HOT 1
- Don't have root bypass the daemon by default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix.