Skip to content

Commit a6a1766

Browse files
authored
[chore] Remove toolchain directive from cmd/otelcorecol (#14137)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description <!-- Issue number if applicable --> This is not really needed anymore in recent Go versions, so I think we can remove it and avoid CI failures on every patch. In particular, [the Go 1.25 release notes](https://go.dev/doc/go1.25) state: > When the go command updates the go line in a go.mod or go.work file, it [no longer](https://go.dev/ref/mod#go-mod-file-toolchain) adds a toolchain line specifying the command’s current version.
1 parent 09a2719 commit a6a1766

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- name: Setup Go
9494
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
9595
with:
96-
go-version: oldstable
96+
go-version: stable
9797
cache: false
9898
- name: Cache Go
9999
id: go-cache

cmd/otelcorecol/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module go.opentelemetry.io/collector/cmd/otelcorecol
44

55
go 1.24.0
66

7-
toolchain go1.24.9
8-
97
require (
108
go.opentelemetry.io/collector/component v1.45.0
119
go.opentelemetry.io/collector/confmap v1.45.0

0 commit comments

Comments
 (0)