Skip to content

Commit 4c63cea

Browse files
Fix #221 by bumping Go. (#223)
* Fix #221 by bumping Go. * CI: use golang:latest instead of GoReleaser's container image * Add Go linker flag (-B gobuildid) to generate UUID. --------- Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>
1 parent 772336a commit 4c63cea

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

.cirrus.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,21 @@ task:
2828
GORELEASER_KEY: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!]
2929
FURY_TOKEN: ENCRYPTED[!97fe4497d9aca60a3d64904883b81e21f19706c6aedda625c97f62f67ec46b8efa74c55699956158bbf0a23726e7d9f6!]
3030
container:
31-
image: goreleaser/goreleaser-pro:latest
31+
image: golang:latest
3232
cpu: 4
3333
memory: 12G
3434
matrix:
3535
- name: Release Binaries
3636
only_if: $CIRRUS_TAG != ''
37+
install_goreleaser_script:
38+
- echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
39+
- apt update && apt -y install goreleaser-pro
3740
release_script: goreleaser
3841
- name: Release Binaries (Dry Run)
3942
only_if: $CIRRUS_TAG == ''
43+
install_goreleaser_script:
44+
- echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
45+
- apt update && apt -y install goreleaser-pro
4046
release_script: goreleaser release --skip=publish --snapshot --clean --verbose
4147
binaries_artifacts:
4248
path: "dist/orchard_*/orchard*"

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ builds:
1010
ldflags: >
1111
-X github.com/cirruslabs/orchard/internal/version.Version={{.Version}}
1212
-X github.com/cirruslabs/orchard/internal/version.Commit={{.ShortCommit}}
13+
-B gobuildid
1314
env:
1415
- CGO_ENABLED=0
1516
goos:

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM goreleaser/goreleaser-pro:latest as builder
1+
FROM golang:latest as builder
2+
3+
# Install GoReleaser Pro
4+
RUN echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
5+
RUN apt update && apt -y install goreleaser-pro
26

37
WORKDIR /tmp/orchard
48
ADD . /tmp/orchard/

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/cirruslabs/orchard
22

3-
go 1.21
4-
5-
toolchain go1.22.4
3+
go 1.23.3
64

75
require (
86
github.com/avast/retry-go v3.0.0+incompatible

0 commit comments

Comments
 (0)