Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
],
matchUpdateTypes: [
'minor',
'patch',
],
groupName: 'go minor and patch updates',
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/component_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "~1.20"
go-version-file: 'build/embedded/go.mod'
check-latest: true

- name: Obtain Rust version from project
Expand Down
8 changes: 5 additions & 3 deletions build/embedded/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module github.com/newrelic/newrelic-agent-control/embedded-downloader

go 1.20
go 1.25

require gopkg.in/yaml.v3 v3.0.1
require (
github.com/stretchr/testify v1.8.4
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
)
7 changes: 5 additions & 2 deletions build/scripts/download_embedded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

# download assets
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
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

# validate
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"
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"
Loading