From 835260f07bf43d79ccc0d5943907bbc2be32fdfd Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Wed, 20 Jul 2022 23:52:32 +0100 Subject: [PATCH] fix(stapel): importing of symlink that points to directory does not work properly The checksum was calculated incorrectly and reassembly did not take place when the files were changed. Signed-off-by: Alexey Igrychev --- pkg/build/stage/dependencies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/stage/dependencies.go b/pkg/build/stage/dependencies.go index 9593d7bf35..de7b9e0ce7 100644 --- a/pkg/build/stage/dependencies.go +++ b/pkg/build/stage/dependencies.go @@ -325,7 +325,7 @@ func (s *DependenciesStage) generateImportChecksum(ctx context.Context, c Convey } func generateChecksumCommand(from string, includePaths, excludePaths []string, resultChecksumPath string) string { - findCommandParts := append([]string{}, stapel.FindBinPath(), from, "-type", "f") + findCommandParts := append([]string{}, stapel.FindBinPath(), "-H", from, "-type", "f") var nameIncludeArgs []string for _, includePath := range includePaths {