Skip to content

Commit

Permalink
Bump to Go1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
aqstack committed Dec 26, 2024
1 parent c356a7e commit 678668b
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/binding-cache/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/binding-cache ./cmd/syslog-binding-cache
2 changes: 1 addition & 1 deletion packages/binding-cache/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: binding-cache

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/syslog-binding-cache/**/*.go
- pkg/**/*.go
Expand Down
2 changes: 1 addition & 1 deletion packages/forwarder-agent-windows/packaging
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
. ./exiter.ps1
. C:\var\vcap\packages\golang-1.22-windows\bosh\compile.ps1
. C:\var\vcap\packages\golang-1.23-windows\bosh\compile.ps1
$env:GOPATH="C:\var\vcap"

$ErrorActionPreference = "Stop";
Expand Down
2 changes: 1 addition & 1 deletion packages/forwarder-agent-windows/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: forwarder-agent-windows

dependencies:
- golang-1.22-windows
- golang-1.23-windows

files:
- exiter.ps1
Expand Down
2 changes: 1 addition & 1 deletion packages/forwarder-agent/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/forwarder-agent ./cmd/forwarder-agent
2 changes: 1 addition & 1 deletion packages/forwarder-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: forwarder-agent

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/forwarder-agent/**/*.go
- pkg/**/*.go
Expand Down
2 changes: 0 additions & 2 deletions packages/golang-1.22-linux/spec.lock

This file was deleted.

2 changes: 0 additions & 2 deletions packages/golang-1.22-windows/spec.lock

This file was deleted.

2 changes: 1 addition & 1 deletion packages/loggregator_agent/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/loggregator-agent ./cmd/loggregator-agent
2 changes: 1 addition & 1 deletion packages/loggregator_agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: loggregator_agent

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/loggregator-agent/**/*.go
- pkg/**/*.go
Expand Down
2 changes: 1 addition & 1 deletion packages/loggregator_agent_windows/packaging
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
. ./exiter.ps1
. C:\var\vcap\packages\golang-1.22-windows\bosh\compile.ps1
. C:\var\vcap\packages\golang-1.23-windows\bosh\compile.ps1
$env:GOPATH="C:\var\vcap"

$ErrorActionPreference = "Stop";
Expand Down
2 changes: 1 addition & 1 deletion packages/loggregator_agent_windows/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: loggregator_agent_windows

dependencies:
- golang-1.22-windows
- golang-1.23-windows

files:
- exiter.ps1
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/prom-scraper ./cmd/prom-scraper
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: prom_scraper

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/prom-scraper/**/*.go
- cmd/prom-scraper/get-metrics.sh
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper_windows/packaging
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
. ./exiter.ps1
. C:\var\vcap\packages\golang-1.22-windows\bosh\compile.ps1
. C:\var\vcap\packages\golang-1.23-windows\bosh\compile.ps1
$env:GOPATH="C:\var\vcap"

$ErrorActionPreference = "Stop";
Expand Down
2 changes: 1 addition & 1 deletion packages/prom_scraper_windows/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: prom_scraper_windows

dependencies:
- golang-1.22-windows
- golang-1.23-windows

files:
- exiter.ps1
Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent-windows/packaging
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
. ./exiter.ps1
. C:\var\vcap\packages\golang-1.22-windows\bosh\compile.ps1
. C:\var\vcap\packages\golang-1.23-windows\bosh\compile.ps1
$env:GOPATH="C:\var\vcap"

$ErrorActionPreference = "Stop";
Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent-windows/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: syslog-agent-windows

dependencies:
- golang-1.22-windows
- golang-1.23-windows

files:
- exiter.ps1
Expand Down
2 changes: 1 addition & 1 deletion packages/syslog-agent/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/syslog-agent ./cmd/syslog-agent
2 changes: 1 addition & 1 deletion packages/syslog-agent/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: syslog-agent

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/syslog-agent/**/*.go
- pkg/**/*.go
Expand Down
2 changes: 1 addition & 1 deletion packages/udp-forwarder/packaging
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ex

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

go build -mod=vendor -o ${BOSH_INSTALL_TARGET}/udp-forwarder ./cmd/udp-forwarder
2 changes: 1 addition & 1 deletion packages/udp-forwarder/spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: udp-forwarder

dependencies:
- golang-1.22-linux
- golang-1.23-linux
files:
- cmd/udp-forwarder/**/*.go
- pkg/**/*.go
Expand Down
4 changes: 1 addition & 3 deletions src/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module code.cloudfoundry.org/loggregator-agent-release/src

go 1.22.0

toolchain go1.22.10
go 1.23.0

require (
code.cloudfoundry.org/go-batching v0.0.0-20241223135445-b8f45a03eb70
Expand Down

0 comments on commit 678668b

Please sign in to comment.