Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go install github.com/boyter/scc/v3@latest isn't working since v3.4 #532

Closed
PhilKrau opened this issue Oct 1, 2024 · 3 comments
Closed

Comments

@PhilKrau
Copy link

PhilKrau commented Oct 1, 2024

Hey, I'm using scc inside a gitlab ci/cd-pipeline and all my pipelines are failing since the command go install github.com/boyter/scc/v3@latest isn't working anymore. Up until version 3.3.5 everything ran fine, now I get the following errors:

/go/pkg/mod/github.com/boyter/scc/v3@v3.4.0/processor/detector.go:6:2: package cmp is not in GOROOT (/opt/bitnami/go/src/cmp)
/go/pkg/mod/github.com/boyter/scc/v3@v3.4.0/processor/bloom.go:3:8: package math/rand/v2 is not in GOROOT (/opt/bitnami/go/src/math/rand/v2)
/go/pkg/mod/github.com/boyter/scc/v3@v3.4.0/processor/detector.go:9:2: package slices is not in GOROOT (/opt/bitnami/go/src/slices)

I would appreciate any kind of help since I'm not too versed in Go.
I'm using Ubuntu 22.04 and go1.18.1 linux/amd64.
Thanks in advance for any help

@boyter
Copy link
Owner

boyter commented Oct 1, 2024

Version 3.3.5 was updated to use Go 1.22 since the version it was on at the time was due to be EOL.

All you would need do is update your Go version 1.22 or later (1.23 being the latest at the moment).

I will be updating it every now and then simply to ensure it gets the latest security patches, features and performance improvements. For the future checking /~https://github.com/boyter/scc/blob/master/go.mod will let you know what version you need to be building from.

@PhilKrau
Copy link
Author

PhilKrau commented Oct 2, 2024

Managed to fix the issue, thank you very much !

@PhilKrau PhilKrau closed this as completed Oct 2, 2024
@boyter
Copy link
Owner

boyter commented Oct 2, 2024

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants