https://pantsbuild.org/ logo
b

brief-flag-35586

02/28/2022, 5:59 PM
Hi guys, Does anybody else face an error with golang:
Copy code
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
Thought that it’s because of my local go versions or something, but an example from here works fine on my system, even if delete go.mod and go.sum and create it by myself. What could be the problem. My go.mod looks like:
Copy code
// private repo
module <http://github.com/{my-org}/{repo}|github.com/{my-org}/{repo}>

go 1.17

require (
	<http://github.com/aws/aws-lambda-go|github.com/aws/aws-lambda-go> v1.28.0
	<http://github.com/fnproject/fdk-go|github.com/fnproject/fdk-go> v0.0.16
	<http://github.com/tencentyun/scf-go-lib|github.com/tencentyun/scf-go-lib> v0.0.0-20211123032342-f972dcd16ff6
)
h

hundreds-father-404

02/28/2022, 6:02 PM
Hello! What Pants version is this? We redesigned how this is handled in Pants 2.10 to be much better, so we recommend using Pants 2.10.0rc2
b

brief-flag-35586

02/28/2022, 6:12 PM
Thank you! I will give it a try. We are still on 2.9
h

hundreds-father-404

02/28/2022, 6:14 PM
Cool, let us know how it goes! Check out https://www.pantsbuild.org/v2.10/docs/upgrade-tips for upgrade tips
🙏 1
2 Views