Skip to content

Commit 8f76df9

Browse files
authored
build: include goreleaser as project tool (#503)
1 parent 5ffec6b commit 8f76df9

5 files changed

Lines changed: 1152 additions & 472 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,6 @@ jobs:
136136
name: Run Build
137137
command: |
138138
make build-ci
139-
- run:
140-
name: Install Goreleaser
141-
command: |
142-
# Ensures the directory we need exist.
143-
mkdir -p ~/bin
144-
installPath=~/bin
145-
146-
dlURL="https://github.com/goreleaser/goreleaser/releases/download/v2.8.2/goreleaser_Linux_x86_64.tar.gz"
147-
curl -sSL $dlURL | tar -xz -C ${installPath} goreleaser
148-
- run:
149-
name: Check GoReleaser is install success
150-
command: |
151-
goreleaser --version
152139
- export-build-version:
153140
release_ref: << parameters.release_ref >>
154141
sanitized: true

.github/MAINTAINERS_GUIDE.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ cmd/
159159
The release build artifacts from `make build-snapshot` that includes binaries
160160
and archives for all platforms.
161161

162-
An installation of [`goreleaser`][goreleaser] is required and the latest version
163-
is recommended.
164-
165162
### `internal/`
166163

167164
A safe place to store private packages used by commands and this program. Shared
@@ -225,7 +222,6 @@ Certain things are common during development and require a few commands.
225222
- [Updating](#updating)
226223
- [Bumping the Golang version](#bumping-the-golang-version)
227224
- [Bumping Go packages versions](#bumping-go-package-versions)
228-
- [Bumping Goreleaser versions](#bumping-goreleaser-versions)
229225
- [Designing](#designing)
230226
- [Deprecating features and flags](#deprecating-features-and-flags)
231227
- [Allowlist configuration](#allowlist-configuration)
@@ -555,15 +551,6 @@ tree of a transitive dependency, this command can be helpful:
555551
go mod graph | grep <module name>
556552
```
557553

558-
#### Bumping Goreleaser versions
559-
560-
The [`goreleaser`][goreleaser] package we use to build release snapshots needs
561-
updates in the following files on occasion:
562-
563-
- `.circleci/config.yml`
564-
- `.goreleaser.yml`
565-
566-
Testing in our CI setup uses changes to these files when creating test builds.
567554

568555
### Designing
569556

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ build-ci: clean
7171
# Build the CLI as a release snapshot for all operating systems
7272
.PHONY: build-snapshot
7373
build-snapshot: clean
74-
BUILD_VERSION="$(BUILD_VERSION)" LDFLAGS="$(LDFLAGS)" goreleaser --snapshot --clean --skip=publish --config .goreleaser.yml
74+
BUILD_VERSION="$(BUILD_VERSION)" LDFLAGS="$(LDFLAGS)" go tool goreleaser --snapshot --clean --skip=publish --config .goreleaser.yml
7575

7676
# Update documentation in a commit tagged as the release
7777
# Usage: `make tag RELEASE_VERSION=3.7.0-example`

0 commit comments

Comments
 (0)