Skip to content

Commit

Permalink
Fix go coverage collection
Browse files Browse the repository at this point in the history
by removing the go build deps in the packaging phase
  • Loading branch information
csweichel committed May 24, 2024
1 parent 1892fcc commit b5584c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/leeway/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ func (p *Package) buildGo(buildctx *buildContext, wd, result string) (res *packa
if len(buildCmd) > 0 && cfg.Packaging != GoLibrary {
commands[PackageBuildPhaseBuild] = append(commands[PackageBuildPhaseBuild], buildCmd)
}
commands[PackageBuildPhaseBuild] = append(commands[PackageBuildPhaseBuild], []string{"rm", "-rf", "_deps"})

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

0 comments on commit b5584c5

Please sign in to comment.