Skip to content

Commit 06123f6

Browse files
authored
Merge pull request #12335 from obsidiansystems/fix-12295
Fix #12295
2 parents f168a6e + 7f7ca38 commit 06123f6

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

src/libstore/unix/build/local-derivation-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2565,7 +2565,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
25652565
case FileIngestionMethod::Git: {
25662566
return git::dumpHash(
25672567
outputHash.hashAlgo,
2568-
{getFSSourceAccessor(), CanonPath(tmpDir + "/tmp")}).hash;
2568+
{getFSSourceAccessor(), CanonPath(actualPath)}).hash;
25692569
}
25702570
}
25712571
assert(false);

tests/functional/fixed.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,7 @@ rec {
6666

6767
# Can use "nar" instead of "recursive" now.
6868
nar-not-recursive = f2 "foo" ./fixed.builder2.sh "nar" "md5" "3670af73070fa14077ad74e0f5ea4e42";
69+
70+
# Experimental feature
71+
git = f2 "foo" ./fixed.builder2.sh "git" "sha1" "cd44baf36915d5dec8374232ea7e2057f3b4494e";
6972
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source common.sh
2+
3+
# Store layer needs bugfix
4+
requireDaemonNewerThan "2.27pre20250122"
5+
6+
nix-build ../fixed.nix -A git --no-out-link

tests/functional/git-hashing/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ suites += {
33
'deps': [],
44
'tests': [
55
'simple.sh',
6+
'fixed.sh',
67
],
78
'workdir': meson.current_source_dir(),
89
}

0 commit comments

Comments
 (0)