Skip to content

Commit 81242fa

Browse files
Remove go 1.19 support, bump minimum to go 1.20 and add testing for 1.21 (#8208)
Fixes #8207 --------- Co-authored-by: bryan-aguilar <[email protected]>
1 parent c46704a commit 81242fa

File tree

51 files changed

+76
-54
lines changed

Some content is hidden

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

51 files changed

+76
-54
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: breaking
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
5+
component: all
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Remove go 1.19 support, bump minimum to go 1.20 and add testing for 1.21
9+
10+
# One or more tracking issues or pull requests related to the change
11+
issues: [8207]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:
17+
18+
change_logs: [api]

.github/workflows/api-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Go
3535
uses: actions/setup-go@v4
3636
with:
37-
go-version: ~1.19.12
37+
go-version: ~1.20.7
3838

3939
# Generate apidiff states of Main
4040
- name: Generate-States

.github/workflows/build-and-test-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: ~1.19.12
22+
go-version: ~1.20.7
2323
- name: Cache Go
2424
uses: actions/cache@v3
2525
env:

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: ~1.19.12
22+
go-version: ~1.20.7
2323
- name: Cache Go
2424
id: go-cache
2525
uses: actions/cache@v3
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Go
4242
uses: actions/setup-go@v4
4343
with:
44-
go-version: ~1.19.12
44+
go-version: ~1.20.7
4545
- name: Cache Go
4646
id: go-cache
4747
uses: actions/cache@v3
@@ -64,7 +64,7 @@ jobs:
6464
- name: Setup Go
6565
uses: actions/setup-go@v4
6666
with:
67-
go-version: ~1.19.12
67+
go-version: ~1.20.7
6868
- name: Cache Go
6969
id: go-cache
7070
uses: actions/cache@v3
@@ -88,7 +88,7 @@ jobs:
8888
- name: Setup Go
8989
uses: actions/setup-go@v4
9090
with:
91-
go-version: ~1.19.12
91+
go-version: ~1.20.7
9292
- name: Cache Go
9393
id: go-cache
9494
uses: actions/cache@v3
@@ -133,7 +133,7 @@ jobs:
133133
unittest-matrix:
134134
strategy:
135135
matrix:
136-
go-version: ["1.20", 1.19] # 1.20 needs quotes otherwise it's interpreted as 1.2
136+
go-version: ["1.21", "1.20"] # 1.20 needs quotes otherwise it's interpreted as 1.2
137137
runs-on: ubuntu-latest
138138
needs: [setup-environment]
139139
steps:
@@ -249,7 +249,7 @@ jobs:
249249
- name: Setup Go
250250
uses: actions/setup-go@v4
251251
with:
252-
go-version: ~1.19.12
252+
go-version: ~1.20.7
253253
- name: Cache Go
254254
id: go-cache
255255
uses: actions/cache@v3

.github/workflows/builder-integration-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
- name: Setup Go
3131
uses: actions/setup-go@v4
3232
with:
33-
go-version: ~1.19.12
33+
go-version: ~1.20.7
3434
- name: Test
3535
run: make builder-integration-test

.github/workflows/builder-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Go
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: ~1.19.12
19+
go-version: ~1.20.7
2020
- name: Run GoReleaser
2121
uses: goreleaser/goreleaser-action@v4
2222
with:

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@v4
3131
with:
32-
go-version: ~1.19.12
32+
go-version: ~1.20.7
3333
- name: Cache Go
3434
id: go-cache
3535
uses: actions/cache@v3

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: ~1.19.12
22+
go-version: ~1.20.7
2323

2424
# Initializes the CodeQL tools for scanning.
2525
- name: Initialize CodeQL

.github/workflows/contrib-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Go
2424
uses: actions/setup-go@v4
2525
with:
26-
go-version: ~1.19.12
26+
go-version: ~1.20.7
2727
- name: Run Contrib Tests
2828
run: |
2929
contrib_path=/tmp/opentelemetry-collector-contrib

.github/workflows/create-dependabot-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Go
1212
uses: actions/setup-go@v4
1313
with:
14-
go-version: ~1.19.12
14+
go-version: ~1.20.7
1515
- name: Run dependabot-pr.sh
1616
run: ./.github/workflows/scripts/dependabot-pr.sh
1717
env:

0 commit comments

Comments
 (0)