Skip to content

Commit

Permalink
Update Go version to 1.22.0 (#7940)
Browse files Browse the repository at this point in the history
* Update go version to 1.22.0

* Newly-removed vendored files in Go 1.22.0

* The minor Go version must be included in go.mod now

* Fatalf -> Errorf for go vet

* Use repo version of Go fo CodeQL
  • Loading branch information
zrhoffman authored Feb 17, 2024
1 parent 8d1b4e3 commit 1008c27
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ATS_VERSION=9.1.2
GO_VERSION=1.21.7
GO_VERSION=1.22.0
10 changes: 10 additions & 0 deletions .github/workflows/codeql.go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@master
- name: go-version
run: echo "value=$(cat GO_VERSION)" >> $GITHUB_OUTPUT
id: go-version
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.go-version.outputs.value }} # The Go version to download (if necessary) and use.
- name: Install modules
run: go mod vendor -v

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- [#7614](https://github.com/apache/trafficcontrol/pull/7614) *Traffic Ops* The database upgrade process no longer overwrites changes users may have made to the initially seeded data.
- [#7832](https://github.com/apache/trafficcontrol/pull/7832) *t3c* Removed perl dependency
- Updated the CacheGroups Traffic Portal page to use a more performant AG-Grid-based table.
- Updated Go version to 1.22.0

### Fixed
- [#7917](https://github.com/apache/trafficcontrol/pull/7917) *Traffic Ops* Removed `Alerts` field from struct `ProfileExportResponse`.
Expand Down
2 changes: 1 addition & 1 deletion GO_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.7
1.22.0
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module github.com/apache/trafficcontrol/v8
// specific language governing permissions and limitations
// under the License.

go 1.19
go 1.22.0

require (
code.cloudfoundry.org/bytefmt v0.0.0-20211005130812-5bb3c17173e5
Expand Down
2 changes: 1 addition & 1 deletion traffic_router/ultimate-test-harness/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (b HTTPBenchmark) Run(t *testing.T, redirectsChannel chan int, failuresChan
for time.Now().Before(stopTime) {
requestURL := trafficRouterURL + paths[rand.Intn(len(paths))]
if req, err = http.NewRequest("GET", requestURL, nil); err != nil {
t.Fatalf("creating GET request to Traffic Router '%s' (IP address %s): %s",
t.Errorf("creating GET request to Traffic Router '%s' (IP address %s): %s",
trafficRouter.Hostname, trafficRouter.IPAddresses[ipAddressIndex], err.Error())
}
req.Header.Set("User-Agent", UserAgent)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1008c27

Please sign in to comment.