Skip to content

Commit

Permalink
Remove reduntant flags during build
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanBorislavovDimitrov committed Jan 5, 2024
1 parent e995c60 commit b17945f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function buildstatic() {
local plugin_name=$4

echo "building static for $platform $arch"
CGO_ENABLED=0 GOOS=$platform GOARCH=$arch go build -a -tags netgo \
-ldflags "-w -extldflags \"-static\" -X main.Version=${version}" \
CGO_ENABLED=0 GOOS=$platform GOARCH=$arch go build -a \
-ldflags "-w -X main.Version=${version}" \
-o "${plugin_name}"
}

Expand Down

0 comments on commit b17945f

Please sign in to comment.