Skip to content

Commit 8b18d92

Browse files
authored
Update go to 1.22.x (#2540)
1 parent 5b4aa73 commit 8b18d92

25 files changed

+60
-26
lines changed

.github/workflows/accessTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Go Cache
3131
uses: actions/cache@v4

.github/workflows/analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.22.x
2525
cache: false
2626
- name: Checkout code
2727
uses: actions/checkout@v4
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Go
4646
uses: actions/setup-go@v5
4747
with:
48-
go-version: 1.20.x
48+
go-version: 1.22.x
4949
cache: false
5050
- name: Static Code Analysis
5151
uses: golangci/golangci-lint-action@v4
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup Go
6363
uses: actions/setup-go@v5
6464
with:
65-
go-version: 1.20.x
65+
go-version: 1.22.x
6666
cache: false
6767
- name: Run Gosec Security Scanner
6868
uses: securego/gosec@master

.github/workflows/artifactoryTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Go
2727
uses: actions/setup-go@v5
2828
with:
29-
go-version: 1.20.x
29+
go-version: 1.22.x
3030
cache: false
3131
- name: Checkout code
3232
uses: actions/checkout@v4

.github/workflows/distributionTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Go Cache
3131
uses: actions/cache@v4

.github/workflows/dockerTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.22.x
2525
cache: false
2626
- name: Checkout code
2727
uses: actions/checkout@v4

.github/workflows/frogbot-scan-pull-request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
# "frogbot" GitHub environment can approve the pull request to be scanned.
1313
environment: frogbot
1414
steps:
15+
- name: Setup Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: 1.22.x
19+
cache: false
1520
- uses: jfrog/frogbot@v2
1621
env:
1722
JFROG_CLI_LOG_LEVEL: "DEBUG"

.github/workflows/frogbot-scan-repository.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
# The repository scanning will be triggered periodically on the following branches.
1818
branch: [ "dev" ]
1919
steps:
20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: 1.22.x
24+
cache: false
2025
- uses: jfrog/frogbot@v2
2126
env:
2227
JFROG_CLI_LOG_LEVEL: "DEBUG"
@@ -124,4 +129,4 @@ jobs:
124129

125130
# [Optional, Default: [email protected]]
126131
# Set the email of the commit author
127-
# JF_GIT_EMAIL_AUTHOR: ""
132+
# JF_GIT_EMAIL_AUTHOR: ""

.github/workflows/goTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Go
2727
uses: actions/setup-go@v5
2828
with:
29-
go-version: 1.20.x
29+
go-version: 1.22.x
3030
cache: false
3131
- name: Checkout code
3232
uses: actions/checkout@v4

.github/workflows/gradleTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.20.x
31+
go-version: 1.22.x
3232
cache: false
3333
- name: Setup Java
3434
uses: actions/setup-java@v4

.github/workflows/lifecycleTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Checkout code
3131
uses: actions/checkout@v4

.github/workflows/mavenTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Checkout code
3131
uses: actions/checkout@v4

.github/workflows/npmTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Install npm
3131
uses: actions/setup-node@v3

.github/workflows/nugetTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Install NuGet
3131
uses: nuget/setup-nuget@v2

.github/workflows/pluginsTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.22.x
2929
cache: false
3030
- name: Checkout code
3131
uses: actions/checkout@v4

.github/workflows/podmanTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.22.x
2525
cache: false
2626
- name: Checkout code
2727
uses: actions/checkout@v4

.github/workflows/pythonTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Go
2727
uses: actions/setup-go@v5
2828
with:
29-
go-version: 1.20.x
29+
go-version: 1.22.x
3030
cache: false
3131
# Due to a bug in Python 3.12.0 we temporarily use version 3.11.5
3232
- name: Setup Python3

.github/workflows/scriptTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Go
3939
uses: actions/setup-go@v5
4040
with:
41-
go-version: 1.20.x
41+
go-version: 1.22.x
4242
cache: false
4343

4444
- name: Checkout code

.github/workflows/transferTests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: 1.20.x
32+
go-version: 1.22.x
3333
cache: false
3434
- name: Go Cache
3535
uses: actions/cache@v4
@@ -60,7 +60,7 @@ jobs:
6060
- name: Setup Go
6161
uses: actions/setup-go@v5
6262
with:
63-
go-version: 1.20.x
63+
go-version: 1.22.x
6464
cache: false
6565
- name: Go Cache
6666
uses: actions/cache@v4

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ node("docker") {
3131
repo = 'jfrog-cli'
3232
sh 'rm -rf temp'
3333
sh 'mkdir temp'
34-
def goRoot = tool 'go-1.20.14'
34+
def goRoot = tool 'go-1.22.3'
3535
env.GOROOT="$goRoot"
3636
env.PATH+=":${goRoot}/bin:/tmp/node-${nodeVersion}-linux-x64/bin"
3737
env.GO111MODULE="on"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Scanned by Frogbot](https://raw.github.com/jfrog/frogbot/master/images/frogbot-badge.svg)](https://github.com/jfrog/frogbot#readme)
88
[![Go Report Card](https://goreportcard.com/badge/github.com/jfrog/jfrog-cli)](https://goreportcard.com/report/github.com/jfrog/jfrog-cli)
99
[![license](https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=flat)](https://raw.githubusercontent.com/jfrog/jfrog-cli/v2/LICENSE) [![](https://img.shields.io/badge/Docs-%F0%9F%93%96-blue)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli)
10-
[![Go version](https://img.shields.io/github/go-mod/go-version/jfrog/jfrog-cli)](https://tip.golang.org/doc/go1.20)
10+
[![Go version](https://img.shields.io/github/go-mod/go-version/jfrog/jfrog-cli)](https://tip.golang.org/doc/go1.22)
1111

1212
</div>
1313

build/docker/full/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG repo_name_21
22
# Remove ${repo_name_21} to pull from Docker Hub.
3-
FROM ${repo_name_21}/jfrog-docker/golang:1.20 as builder
3+
FROM ${repo_name_21}/jfrog-docker/golang:1.22 as builder
44
ARG image_name=jfrog-cli-full
55
ARG cli_executable_name
66
WORKDIR /${image_name}

build/docker/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG repo_name_21
22
# Remove ${repo_name_21} to pull from Docker Hub.
3-
FROM ${repo_name_21}/jfrog-docker/golang:1.20-alpine as builder
3+
FROM ${repo_name_21}/jfrog-docker/golang:1.22-alpine as builder
44
ARG image_name=jfrog-cli
55
ARG cli_executable_name
66
WORKDIR /${image_name}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/jfrog/jfrog-cli
22

3-
go 1.20
3+
go 1.22
44

55
require (
66
github.com/agnivade/levenshtein v1.1.1

0 commit comments

Comments
 (0)