Skip to content

Commit

Permalink
drop special behavior to support Go pre-1.13 (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Sep 22, 2021
1 parent 08c6c71 commit 0451db7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 45 deletions.
2 changes: 1 addition & 1 deletion pkg/build/gobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ func (g *gobuild) configForImportPath(ip string) Config {
config, ok := g.buildConfigs[ip]
if !ok {
// Apply default build flags in case none were supplied
config.Flags = addGo113TrimPathFlag(config.Flags)
config.Flags = append(config.Flags, "-trimpath")
}

if g.disableOptimizations {
Expand Down
22 changes: 0 additions & 22 deletions pkg/build/trimpath_113.go

This file was deleted.

22 changes: 0 additions & 22 deletions pkg/build/trimpath_pre113.go

This file was deleted.

0 comments on commit 0451db7

Please sign in to comment.