-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add git add-to-store support for Nix #3
Commits on Jun 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 130267d - Browse repository at this point
Copy the full SHA 130267dView commit details -
This matches what we want for blobs. Trees are still in progress - we need a way to symlink to other objects, using that to determine ca.
Configuration menu - View commit details
-
Copy full SHA for df74744 - Browse repository at this point
Copy the full SHA df74744View commit details -
Configuration menu - View commit details
-
Copy full SHA for f292e50 - Browse repository at this point
Copy the full SHA f292e50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1592d09 - Browse repository at this point
Copy the full SHA 1592d09View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf81991 - Browse repository at this point
Copy the full SHA cf81991View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e9c2ce - Browse repository at this point
Copy the full SHA 9e9c2ceView commit details -
This is really bad and dangerous! But Git migration to sha256 is still a ways away: https://lwn.net/Articles/811068/ So we need to allow it for the time being.
Configuration menu - View commit details
-
Copy full SHA for 6f7fab9 - Browse repository at this point
Copy the full SHA 6f7fab9View commit details -
We need access to other things in the store. This is kind of dangerous though if things are added in the wrong order�.
Configuration menu - View commit details
-
Copy full SHA for ee989c6 - Browse repository at this point
Copy the full SHA ee989c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cd3ac7 - Browse repository at this point
Copy the full SHA 9cd3ac7View commit details -
Add createExecutableFile primitive to ParseSink
This is needed to create files based on git permissions
Configuration menu - View commit details
-
Copy full SHA for b5ed6a9 - Browse repository at this point
Copy the full SHA b5ed6a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ceba63 - Browse repository at this point
Copy the full SHA 6ceba63View commit details -
This updates the remote protocol to try to handle sha1 hashes.
Configuration menu - View commit details
-
Copy full SHA for e44956d - Browse repository at this point
Copy the full SHA e44956dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 646862e - Browse repository at this point
Copy the full SHA 646862eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 592e926 - Browse repository at this point
Copy the full SHA 592e926View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a038f - Browse repository at this point
Copy the full SHA a4a038fView commit details -
Use path-based addToStore method for add-to-store
This is more direct.
Configuration menu - View commit details
-
Copy full SHA for 4ecb49d - Browse repository at this point
Copy the full SHA 4ecb49dView commit details -
Properly handle realStoreDir vs. storeDir in git.cc
We need both to properly mess with the file system. storeDir goes into the hash while realStoreDir is what we read & write to.
Configuration menu - View commit details
-
Copy full SHA for d68b774 - Browse repository at this point
Copy the full SHA d68b774View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18d4a3d - Browse repository at this point
Copy the full SHA 18d4a3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8f34fd - Browse repository at this point
Copy the full SHA d8f34fdView commit details -
Add hash to local store correctly from dump
Need to use the htSHA1 we were given, don’t recompute.
Configuration menu - View commit details
-
Copy full SHA for 27ffbc7 - Browse repository at this point
Copy the full SHA 27ffbc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05cbfde - Browse repository at this point
Copy the full SHA 05cbfdeView commit details -
Revert "Depend on install for installcheck"
This reverts commit 7b6186d.
Configuration menu - View commit details
-
Copy full SHA for 97ce2cc - Browse repository at this point
Copy the full SHA 97ce2ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 229ce9c - Browse repository at this point
Copy the full SHA 229ce9cView commit details -
narHash is the hash of the nar, not the git objects.
Configuration menu - View commit details
-
Copy full SHA for 031fa72 - Browse repository at this point
Copy the full SHA 031fa72View commit details -
Use correct narHash in add-to-store
We need to dump path and dump git here so that the hashes match what is expected elsewhere.
Configuration menu - View commit details
-
Copy full SHA for d49c873 - Browse repository at this point
Copy the full SHA d49c873View commit details -
Throw error when hashAlgo != SHA1 on git ingestion
This should always use sha1 hash type, but we want to make sure the caller knows that. So just throw an error instead of ignoring hashAlgo on Git ingestion.
Configuration menu - View commit details
-
Copy full SHA for cd3ef3f - Browse repository at this point
Copy the full SHA cd3ef3fView commit details -
Don’t include realStoreDir refs in git output
symlinks should be relative so that they look like: ../s5c0hnz9qfnpnn1bszfxicgz21d1fam3-dummy3 instead of /build/nix-test/store/s5c0hnz9qfnpnn1bszfxicgz21d1fam3-dummy3 This way our hashes will work with any real store dir. Note that /nix/store is still embedded in the store entry function.
Configuration menu - View commit details
-
Copy full SHA for 4dae98e - Browse repository at this point
Copy the full SHA 4dae98eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b14945 - Browse repository at this point
Copy the full SHA 1b14945View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54ee74e - Browse repository at this point
Copy the full SHA 54ee74eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1e1ace - Browse repository at this point
Copy the full SHA b1e1aceView commit details -
this shouldn’t be needed - FdSink handles this for us.
Configuration menu - View commit details
-
Copy full SHA for 7fe9a48 - Browse repository at this point
Copy the full SHA 7fe9a48View commit details -
Copy instead of symlinking directories
Symlinks are resolved in the nar format so we end up with references to the real store dir. Copying avoids this and gives us a stable hash. Also update the ParseSink api with two methods: - copyFile - copyDirectory both are needed to properly implement git parsing.
Configuration menu - View commit details
-
Copy full SHA for eb90cc6 - Browse repository at this point
Copy the full SHA eb90cc6View commit details -
Use custom copyDirectory instead of libc++fs
libc++fs isn’t alway available
Configuration menu - View commit details
-
Copy full SHA for b120259 - Browse repository at this point
Copy the full SHA b120259View commit details
Commits on Jun 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7432a9d - Browse repository at this point
Copy the full SHA 7432a9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24544d3 - Browse repository at this point
Copy the full SHA 24544d3View commit details