Skip to content

Commit

Permalink
Do not use Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
metal3d committed Jun 21, 2021
1 parent 4511877 commit dc40425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func goBuild(ctx Context) error {
if len(ldflags) > 0 {
flags := make([]string, len(ldflags))
for i, flag := range ldflags {
flags[i] = fmt.Sprintf("-ldflags=%s", flag)
flags[i] = "-ldflags=" + flag
}

// ensure that GOFLAGS is not overwritten as they can be passed
Expand Down

0 comments on commit dc40425

Please sign in to comment.