Overview

Request 1183248 superseded

Update go version to 1.22 so that obs-service-go_modules can handle go.mod that contain 1.22 / 1.22.x


Sheng Huang's avatar

This commit is to resolve the go: go.mod requires go >= 1.22 (running go 1.21.10; GOTOOLCHAIN=local) issue. Here is a link to one of the packages where I had this problem dae


Jeff Kowalczyk's avatar
reviewer target maintainer

Thanks for the submission. Accepting on a superseding SR, a changelog entry is required.

Request History
Sheng Huang's avatar

Psheng created request

Update go version to 1.22 so that obs-service-go_modules can handle go.mod that contain 1.22 / 1.22.x


Jeff Kowalczyk's avatar

jfkw superseded request

- Update go toolchain to Requires: golang(API) >= 1.22
* Recent go toolchain versions enforce use of the minimum
toolchain version specified in go.mod
* Minimum toolchain requirements are in effect for go commands as
well as unit compilation
* Users running a version older than specified may see error:
go: go.mod requires go >= 1.22 (running go 1.21.10; GOTOOLCHAIN=local)
* This package and others which call go toolchain commands will
need timely updates to the latest version
* Reported by Sheng Huang (psheng)
* Closes https://github.com/openSUSE/obs-service-go_modules/issues/49

openSUSE Build Service is sponsored by