Skip to content

Commit 1bfef27

Browse files
authored
Remove flags no longer needed (#83)
1 parent f023c09 commit 1bfef27

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

.github/workflows/ci.yml

-5
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,13 @@ jobs:
3232
with:
3333
go-version: stable
3434

35-
- name: Determine GOPATH
36-
id: go
37-
run: echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
38-
3935
- name: Build binary
4036
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
4137
with:
4238
version: v2.3.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
4339
args: build --clean ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot' || '' }}
4440
env:
4541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
GOPATH: ${{ steps.go.outputs.go_path }}
4742

4843
- name: Store Artifacts in Cache
4944
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2

.goreleaser.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ builds:
1515
- s390x
1616
flags:
1717
- -trimpath
18-
gcflags:
19-
- all=-trimpath={{.Env.GOPATH}}
20-
asmflags:
21-
- all=-trimpath={{.Env.GOPATH}}
2218
ldflags:
2319
- -s -w -X main.version={{.Version}}
2420

@@ -34,10 +30,6 @@ builds:
3430
- s390x
3531
flags:
3632
- -trimpath
37-
gcflags:
38-
- all=-trimpath={{.Env.GOPATH}}
39-
asmflags:
40-
- all=-trimpath={{.Env.GOPATH}}
4133
ldflags:
4234
- -s -w -X main.version={{.Version}}
4335

0 commit comments

Comments
 (0)