Giter VIP home page Giter VIP logo

Comments (3)

yshui avatar yshui commented on June 18, 2024 4

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.

yshui avatar yshui commented on June 18, 2024

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.

NobbZ avatar NobbZ commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.