Skip to content

Commit ac64a61

Browse files
committed
build: include goreleaser as project tool
1 parent eecf995 commit ac64a61

5 files changed

Lines changed: 1240 additions & 42 deletions

File tree

.circleci/config.yml

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

.github/MAINTAINERS_GUIDE.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ cmd/
227227
The release build artifacts from `make build-snapshot` that includes binaries
228228
and archives for all platforms.
229229

230-
An installation of [`goreleaser`][goreleaser] is required and the latest version
231-
is recommended.
232-
233230
### `internal/`
234231

235232
A safe place to store private packages used by commands and this program. Shared
@@ -623,15 +620,6 @@ tree of a transitive dependency, this command can be helpful:
623620
go mod graph | grep <module name>
624621
```
625622
626-
#### Bumping Goreleaser versions
627-
628-
The [`goreleaser`][goreleaser] package we use to build release snapshots needs
629-
updates in the following files on occasion:
630-
631-
- `.circleci/config.yml`
632-
- `.goreleaser.yml`
633-
634-
Testing in our CI setup uses changes to these files when creating test builds.
635623
636624
### Designing
637625

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)