Experimentally return treeHash on git and github fetchers#10344
Experimentally return treeHash on git and github fetchers#10344Ericson2314 wants to merge 1 commit intoNixOS:masterfrom
treeHash on git and github fetchers#10344Conversation
We already had some `#if 0` for this, indicating a sort of "TODO" experiment. I would like to make this part of the git-hashing experimental feature.
roberth
left a comment
There was a problem hiding this comment.
This seems similarly unprincipled to #9025.
We have at least these kinds of tree hashes:
- derived from tarball
- taken from git commit
- derived after doing whatever transformation on the source
- maybe putting a tree hash into
revworks
Some of these may coincide, but I'm pretty sure we'll have at least two, so the attributes should be qualified.
I don't think we should commit to anything before we know more about the new github: approach discussed in https://discourse.nixos.org/t/2024-03-25-nix-team-meeting-minutes-133/42167, especially because additions to the lock file are breaking changes.
| /* If we don't have submodules and aren't doing export | ||
| ignore, then the tree hash is useful info to provide. */ |
There was a problem hiding this comment.
- How is it useful?
getSubmodulesAttr(input)doesn't tell us anything about whether the repo has submodules.falsedoesn't imply anything, andtrueonly correlates.
|
Yeah I agree it is lacking in principles. I want to take incremental steps towards supporting the "no submdules, tree hash is consistent through the entire process including of CA of store object" happy path, but I am not sure how. Per the end of the call maybe it is ignoring the per-fetcher stuff and starting with |
|
Triaged during the Nix maintainers team meeting: Not ready yet. Details
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-04-08-nix-team-meeting-136/42963/1 |
Motivation
We already had some
#if 0for this, indicating a sort of "TODO" experiment. I would like to make this part of the git-hashing experimental feature.Context
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.