Skip to content

Commit 9644efc

Browse files
authored
chore: update to go1.24
Signed-off-by: Evan Baker <[email protected]>
1 parent 082ab85 commit 9644efc

File tree

45 files changed

+672
-1510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+672
-1510
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT="1.23"
1+
ARG VARIANT="1.24"
22
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
33
RUN apt-get update && \
44
export DEBIAN_FRONTEND=noninteractive && \
@@ -8,4 +8,6 @@ RUN apt-get update && \
88
skopeo \
99
vim \
1010
fzf \
11-
ripgrep
11+
ripgrep \
12+
jq \
13+
curl

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": {
66
"dockerfile": "Dockerfile",
77
"args": {
8-
"VARIANT": "1.23-bullseye",
8+
"VARIANT": "1.24",
99
"NODE_VERSION": "none"
1010
}
1111
},

.github/dependabot.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ updates:
4141
prefix: "deps"
4242
labels: [ "dependencies", "azure-ipam" ]
4343
open-pull-requests-limit: 10
44-
- package-ecosystem: "gomod"
45-
directory: "/build/tools"
46-
schedule:
47-
interval: "daily"
48-
reviewers:
49-
- "azure/azure-sdn-members"
50-
commit-message:
51-
prefix: "deps"
52-
labels: [ "dependencies" ]
53-
open-pull-requests-limit: 10
5444
- package-ecosystem: "gomod"
5545
directory: "/dropgz"
5646
schedule:

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup go
3636
uses: actions/setup-go@v5
3737
with:
38-
go-version: "1.23"
38+
go-version: stable
3939
check-latest: true
4040
- name: Checkout repository
4141
uses: actions/checkout@v4

.github/workflows/crdgen.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@ on:
1212
- checks_requested
1313
jobs:
1414
crdgen:
15-
strategy:
16-
matrix:
17-
go-version: ['1.22', '1.23']
18-
os: [ubuntu-latest]
1915
name: CRDs are Generated
20-
runs-on: ${{ matrix.os }}
16+
runs-on: ubuntu-latest
2117
steps:
2218
- uses: actions/checkout@v4
2319
with:
2420
fetch-depth: 0
2521
- uses: actions/setup-go@v5
2622
with:
27-
go-version: ${{ matrix.go-version }}
23+
go-version: stable
2824
- name: Regenerate NodeNetworkConfig CRD
2925
run: make -C crd/nodenetworkconfig
3026
- name: Regenerate MultitenantNetworkContainer CRD

.github/workflows/cyclonus-netpol-extended-nightly-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-go@v5
2828
with:
29-
go-version: "^1.23"
29+
go-version: stable
3030

3131
- name: Setup Kind
3232
uses: helm/kind-action@v1

.github/workflows/cyclonus-netpol-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/setup-go@v5
3535
with:
36-
go-version: '^1.23'
36+
go-version: stable
3737

3838
- name: Setup Kind
3939
uses: helm/kind-action@v1

.github/workflows/golangci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,18 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
go-version: ['1.22.x', '1.23.x']
1918
os: [ubuntu-latest, windows-latest]
2019
name: Lint
2120
runs-on: ${{ matrix.os }}
2221
steps:
2322
- uses: actions/setup-go@v5
2423
with:
25-
go-version: ${{ matrix.go-version }}
24+
go-version: stable
2625
- uses: actions/checkout@v4
2726
with:
2827
fetch-depth: 0
2928
- name: golangci-lint
3029
uses: golangci/golangci-lint-action@v6
3130
with:
32-
version: v1.61
31+
version: latest
3332
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ipam-*.xml
2424
*.test
2525

2626
controller-gen
27-
build/tools/bin
2827
npm/debug/http
2928

3029
go.work*

.pipelines/templates/run-unit-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ stages:
1212
name: "$(BUILD_POOL_NAME_DEFAULT)"
1313
steps:
1414
- script: |
15-
make tools
1615
# run test, echo exit status code to fd 3, pipe output from test to tee, which splits output to stdout and go-junit-report (which converts test output to report.xml), stdout from tee is redirected to fd 4. Take output written to fd 3 (which is the exit code of test), redirect to stdout, pipe to read from stdout then exit with that status code. Read all output from fd 4 (output from tee) and write to top stdout
1716
{ { { {
1817
sudo -E env "PATH=$PATH" make test-all;
1918
echo $? >&3;
20-
} | tee >(build/tools/bin/go-junit-report > report.xml) >&4;
19+
} | tee >(go tool go-junit-report > report.xml) >&4;
2120
} 3>&1;
2221
} | { read xs; exit $xs; }
2322
} 4>&1

0 commit comments

Comments
 (0)