Skip to content

Commit 4181908

Browse files
chore(deps): update dependency go to v1.25.2 (#1751)
* chore(deps): update dependency go to v1.25.2 * fix: use syntax major.minor on go.mod * fix: make renovate only care about minor versions on go.mod --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Sánchez <davidslt+git@pm.me>
1 parent c4ce68e commit 4181908

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/renovate.json5

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
],
111111
matchUpdateTypes: [
112112
'minor',
113-
'patch',
114113
],
115114
groupName: 'go minor and patch updates',
116115
},

.github/workflows/component_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: "~1.20"
26+
go-version-file: 'build/embedded/go.mod'
2727
check-latest: true
2828

2929
- name: Obtain Rust version from project

build/embedded/go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
module github.com/newrelic/newrelic-agent-control/embedded-downloader
22

3-
go 1.20
3+
go 1.25
44

5-
require gopkg.in/yaml.v3 v3.0.1
5+
require (
6+
github.com/stretchr/testify v1.8.4
7+
gopkg.in/yaml.v3 v3.0.1
8+
)
69

710
require (
811
github.com/davecgh/go-spew v1.1.1 // indirect
912
github.com/pmezard/go-difflib v1.0.0 // indirect
1013
github.com/stretchr/objx v0.5.0 // indirect
11-
github.com/stretchr/testify v1.8.4 // indirect
1214
)

build/scripts/download_embedded.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
ARCH="${ARCH:-amd64}"
44
GOCACHE=/tmp/.gocache
5+
GOVERSION="${GOVERSION:-1.25}"
6+
# Extract only the number part if GOVERSION starts with 'go', common in the CLI output
7+
GOVERSION="${GOVERSION#go}"
58

69
# download assets
7-
docker run --rm --user "$(id -u)":"$(id -g)" -e GOCACHE="$GOCACHE" -e ARCH="$ARCH" -e ARTIFACTS_VERSIONS="${ARTIFACTS_VERSIONS}" -v "$PWD":/usr/src/app -w /usr/src/app golang:1.20 make build/embedded
10+
docker run --rm --user "$(id -u)":"$(id -g)" -e GOCACHE="$GOCACHE" -e ARCH="$ARCH" -e ARTIFACTS_VERSIONS="${ARTIFACTS_VERSIONS}" -v "$PWD":/usr/src/app -w /usr/src/app golang:"$GOVERSION" make build/embedded
811

912
# validate
10-
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ubuntu /bin/bash -c "apt-get update && apt-get install tree -y && tree ./build/embedded"
13+
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ubuntu /bin/bash -c "apt-get update && apt-get install tree -y && tree ./build/embedded"

0 commit comments

Comments
 (0)