Skip to content

Commit c6dddba

Browse files
authored
Remove flags no longer needed (#806)
1 parent 52da912 commit c6dddba

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
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 --snapshot --clean --single-target
4440
env:
4541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
GOPATH: ${{ steps.go.outputs.go_path }}
4742

4843
unit-tests:
4944
name: Unit Tests
@@ -78,10 +73,6 @@ jobs:
7873
with:
7974
go-version: stable
8075

81-
- name: Determine GOPATH
82-
id: go
83-
run: echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
84-
8576
- name: Draft Release Notes
8677
uses: lucacome/draft-release@5d29432a46bff6c122cd4b07a1fb94e1bb158d34 # v1.1.1
8778
with:
@@ -117,7 +108,6 @@ jobs:
117108
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
118109
env:
119110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120-
GOPATH: ${{ steps.go.outputs.go_path }}
121111
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
122112
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
123113
NGINX_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

.goreleaser.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ builds:
1818
- s390x
1919
flags:
2020
- -trimpath
21-
gcflags:
22-
- all=-trimpath={{.Env.GOPATH}}
23-
asmflags:
24-
- all=-trimpath={{.Env.GOPATH}}
2521
main: ./cmd/sync
2622
binary: nginx-asg-sync
2723

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ nginx-asg-sync:
2121
.PHONY: build-goreleaser
2222
build-goreleaser:
2323
@goreleaser -v || (code=$$?; printf "\033[0;31mError\033[0m: there was a problem with GoReleaser. Follow the docs to install it https://goreleaser.com/install\n"; exit $$code)
24-
@GOPATH=$(shell go env GOPATH) goreleaser release --clean --snapshot
24+
@goreleaser release --clean --snapshot
2525

2626
.PHONY: build-goreleaser-docker
2727
build-goreleaser-docker:

0 commit comments

Comments
 (0)