Skip to content

Commit b5584c5

Browse files
committed
Fix go coverage collection
by removing the go build deps in the packaging phase
1 parent 1892fcc commit b5584c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/leeway/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,8 @@ func (p *Package) buildGo(buildctx *buildContext, wd, result string) (res *packa
12831283
if len(buildCmd) > 0 && cfg.Packaging != GoLibrary {
12841284
commands[PackageBuildPhaseBuild] = append(commands[PackageBuildPhaseBuild], buildCmd)
12851285
}
1286-
commands[PackageBuildPhaseBuild] = append(commands[PackageBuildPhaseBuild], []string{"rm", "-rf", "_deps"})
12871286

1287+
commands[PackageBuildPhasePackage] = append(commands[PackageBuildPhasePackage], []string{"rm", "-rf", "_deps"})
12881288
commands[PackageBuildPhasePackage] = append(commands[PackageBuildPhasePackage], []string{
12891289
"tar", "cf", result, fmt.Sprintf("--use-compress-program=%v", compressor), ".",
12901290
})

0 commit comments

Comments
 (0)