Skip to content

Commit c8a199f

Browse files
authored
Merge pull request #1121 from ovh/dev/rb/ci
fix: ci: bump golang version + change import path on ldflags to have proper version + commit pushed in User-Agent
2 parents 115794e + c54a30f commit c8a199f

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
with:
2323
# Allow goreleaser to access older tag information.
2424
fetch-depth: 0
25-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
25+
- name: Setup Go environment
26+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 #v6.0.0
2627
with:
27-
go-version-file: 'go.mod'
28-
cache: true
28+
go-version: '1.24'
29+
cache: false
2930
- name: Import GPG key
3031
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
3132
id: import_gpg

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ builds:
1515
flags:
1616
- -trimpath
1717
ldflags:
18-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X github.com/ovh/terraform-provider-ovh/ovh.providerVersion={{.Version}} -X github.com/ovh/terraform-provider-ovh/ovh.providerCommit={{.Commit}}'
18+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X github.com/ovh/terraform-provider-ovh/v2/ovh.providerVersion={{.Version}} -X github.com/ovh/terraform-provider-ovh/v2/ovh.providerCommit={{.Commit}}'
1919
goos:
2020
- freebsd
2121
- windows
@@ -39,7 +39,7 @@ checksum:
3939
signs:
4040
- artifacts: checksum
4141
args:
42-
# if you are using this in a GitHub action or some other automated pipeline, you
42+
# if you are using this in a GitHub action or some other automated pipeline, you
4343
# need to pass the batch flag to indicate its not interactive.
4444
- "--batch"
4545
- "--local-user"

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golang 1.21.8
1+
golang 1.24.7

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,3 @@ require (
7171
)
7272

7373
go 1.23.0
74-
75-
toolchain go1.24.1

0 commit comments

Comments
 (0)