Skip to content

Commit 2b19544

Browse files
authored
Bump Go to 1.23 (#272)
* chore(src): Bump min go version to go1.23.0 * chore: Use go1.23 package Uses golang-1.23 package in packaging and removes the now outdated golang-1.22 package.
1 parent f6725cd commit 2b19544

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

packages/golang-1.22-linux/spec.lock

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set -ex
22

3-
source /var/vcap/packages/golang-1.22-linux/bosh/compile.env
3+
source /var/vcap/packages/golang-1.23-linux/bosh/compile.env
44
export GOPATH=/var/vcap
55

66
go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/leadership-election ./cmd/leadership-election/

packages/leadership-election/spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: leadership-election
33

44
dependencies:
5-
- golang-1.22-linux
5+
- golang-1.23-linux
66

77
files:
88
- cmd/leadership-election/**/*.go

packages/metric-scraper/packaging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set -ex
22

3-
source /var/vcap/packages/golang-1.22-linux/bosh/compile.env
3+
source /var/vcap/packages/golang-1.23-linux/bosh/compile.env
44
export GOPATH=/var/vcap
55

66
go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/metric-scraper ./cmd/metric-scraper

packages/metric-scraper/spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: metric-scraper
33

44
dependencies:
5-
- golang-1.22-linux
5+
- golang-1.23-linux
66
files:
77
- cmd/metric-scraper/**/*.go
88
- pkg/**/*.go

src/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module code.cloudfoundry.org/system-metrics-scraper
22

3-
go 1.22.0
4-
5-
toolchain go1.22.10
3+
go 1.23.0
64

75
require (
86
code.cloudfoundry.org/go-envstruct v1.7.0

0 commit comments

Comments
 (0)