File tree 15 files changed +12
-86
lines changed
15 files changed +12
-86
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ GH_TOKEN="${VAULT_GITHUB_TOKEN}"
76
76
export GH_TOKEN
77
77
78
78
echo " --- Setting up the :golang: environment..."
79
- GO_VERSION=$( cat .go-version )
79
+ GO_VERSION=$( grep ' ^go ' go.mod | cut -d ' ' -f2 )
80
80
WORKSPACE=$( git rev-parse --show-toplevel)
81
81
export GO_VERSION WORKSPACE
82
82
get_os_details
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ if [ "${CI}" == "true" ] ; then
170
170
export BUILDKITE_TOKEN=" ${BUILDKITE_TOKEN_SECRET} "
171
171
172
172
echo " --- Setting up the :golang: environment..."
173
- GO_VERSION=$( cat .go-version )
173
+ GO_VERSION=$( grep ' ^go ' go.mod | cut -d ' ' -f2 )
174
174
OS_NAME=linux
175
175
OS_ARCH=amd64
176
176
retry 5 curl -sL -o " ${BASE_PROJECT} " /gvm " https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-${OS_NAME} -${OS_ARCH} "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 37
37
go.sum
38
38
tools/go.sum
39
39
- run : make check-full
40
- - name : Ensure .go-version is up to date
41
- run : make update-go-version
42
- if : ${{ github.ref == 'main' }}
43
40
44
41
test :
45
42
strategy :
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ get-version:
148
148
get-version-only :
149
149
@echo $(APM_SERVER_ONLY_VERSION )
150
150
151
- # update-go-version updates .go-version, documentation, and build files
151
+ # update-go-version updates documentation, and build files
152
152
# to use the most recent patch version for the major.minor Go version
153
153
# defined in go.mod.
154
154
.PHONY : update-go-version
Original file line number Diff line number Diff line change 1
1
module github.com/elastic/apm-server/cmd/intake-receiver
2
2
3
- go 1.23.0
3
+ go 1.23.6
4
4
5
5
require (
6
6
github.com/stretchr/testify v1.6.1
Original file line number Diff line number Diff line change 1
1
module github.com/elastic/apm-server/functionaltests
2
2
3
- go 1.23.2
3
+ go 1.23.6
4
4
5
5
require (
6
6
github.com/elastic/apm-perf v0.0.0-20241230130730-2ad47482b731
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ GITCOMMITTIMESTAMPUNIX ?= $(shell git log -1 --pretty=%ct)
5
5
GITREFFILE ?= $(GITDIR ) /$(shell git rev-parse --symbolic-full-name HEAD)
6
6
GITROOT ?= $(shell git rev-parse --show-toplevel)
7
7
8
- GOLANG_VERSION =$(shell cat $( GITROOT ) /.go-version )
8
+ GOLANG_VERSION =$(shell grep '^go' go.mod | cut -d' ' -f2 )
9
9
GOARCH: =$(shell go env GOARCH)
10
10
11
11
APM_SERVER_ONLY_VERSION =$(shell grep "const Version" $(GITROOT ) /internal/version/version.go | cut -d'=' -f2 | tr -d '" ')
Original file line number Diff line number Diff line change 1
1
module github.com/elastic/apm-server
2
2
3
- go 1.23.0
3
+ go 1.23.6
4
4
5
5
require (
6
6
github.com/KimMachineGun/automemlimit v0.7.0
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ARG GOLANG_VERSION
8
8
# ###############################################################################
9
9
FROM golang:${GOLANG_VERSION} as builder
10
10
WORKDIR /src
11
- COPY go.mod go.sum .go-version /src/
11
+ COPY go.mod go.sum /src/
12
12
RUN --mount=type=cache,target=/go/pkg/mod go mod download
13
13
COPY Makefile *.mk /src/
14
14
COPY cmd /src/cmd
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG GOLANG_VERSION
7
7
################################################################################
8
8
FROM docker.elastic.co/wolfi/go:${GOLANG_VERSION} as builder
9
9
WORKDIR /src
10
- COPY go.mod go.sum .go-version /src/
10
+ COPY go.mod go.sum /src/
11
11
RUN --mount=type=cache,target=/go/pkg/mod go mod download
12
12
COPY Makefile *.mk /src/
13
13
COPY cmd /src/cmd
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
#
3
- # This script updates .go-version, documentation, and build files to use the
3
+ # This script updates go.mod files to use the
4
4
# most recent patch version for the major.minor Go version defined in go.mod.
5
5
set -e
6
6
@@ -11,6 +11,3 @@ cd $SDIR/..
11
11
MAJOR_MINOR_VERSION=$( grep ' ^go' go.mod | cut -d' ' -f2 | cut -d. -f1-2)
12
12
13
13
find ./ -type f -name " go.mod" -execdir go get go@$MAJOR_MINOR_VERSION \; -execdir go get toolchain@none \;
14
-
15
- GO_VERSION=$( grep ' ^go' go.mod | cut -d' ' -f2)
16
- echo $GO_VERSION > .go-version
Original file line number Diff line number Diff line change 1
1
module github.com/elastic/apm-server/systemtest
2
2
3
- go 1.23.0
3
+ go 1.23.6
4
4
5
5
require (
6
6
github.com/docker/docker v27.5.1+incompatible
Original file line number Diff line number Diff line change 1
1
module github.com/elastic/apm-server/tools
2
2
3
- go 1.23.0
3
+ go 1.23.6
4
4
5
5
require (
6
6
github.com/elastic/apm-perf v0.0.0-20240925232339-499ba2a27fd4
You can’t perform that action at this time.
0 commit comments