Skip to content

Commit

Permalink
chore(all): update Go to 1.23 in postprocessor and profiler (googleap…
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo authored Feb 20, 2025
1 parent 93edc82 commit dfa0b4f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VARIANT="1-1.22-bullseye"
ARG VARIANT="1-1.23-bullseye"
FROM mcr.microsoft.com/devcontainers/go:${VARIANT}

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go 1.22.0",
"name": "Go 1.23.0",
"build": {
"dockerfile": "Dockerfile"
},
Expand Down
2 changes: 1 addition & 1 deletion internal/postprocessor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22 as builder
FROM golang:1.23 as builder

# Copy local code to the container image.
COPY . /postprocessor/
Expand Down
2 changes: 1 addition & 1 deletion internal/postprocessor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
// This is the default Go version that will be generated into new go.mod
// files. It should be updated every time we drop support for old Go
// versions.
defaultGoModuleVersion = "1.22.7"
defaultGoModuleVersion = "1.23.0"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions profiler/kokoro/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/72935_cloud-profil
export GCLOUD_TESTS_GOLANG_PROJECT_ID="cloud-profiler-e2e"

# Ensure a newer version of Go is used so it is compatible with newer libraries.
# Here we install v1.22.10 which is the current version as of January 2025.
GOVERSION="1.22.10"
# Here we install v1.23.0 which is the current earliest version as of February 2025.
GOVERSION="1.23.0"
retry curl -LO https://go.dev/dl/go${GOVERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
Expand Down

0 comments on commit dfa0b4f

Please sign in to comment.