8000 Incompatibility with Go 1.24? · Issue #312 · google/go-licenses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Incompatibility with Go 1.24? #312

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

Open
jachym-tousek-keboola opened this issue Feb 28, 2025 · 2 comments
Open

Incompatibility with Go 1.24? #312

jachym-tousek-keboola opened this issue Feb 28, 2025 · 2 comments

Comments

@jachym-tousek-keboola
Copy link

After updating to Go 1.24 I'm running into this error whenever I run any go-licenses command:

$ go tool go-licenses report ./...
# github.com/google/go-licenses
vendor/github.com/google/go-licenses/save.go:125:9: cannot use func(src string) (bool, error) {…} (value of type func(src string) (bool, error)) as func(srcinfo os.FileInfo, src string, dest string) (bool, error) value in struct literal

Anyone else having this problem?

@Florian86
Copy link

You might have added version 1 to your Go tools. Try running
go get -tool github.com/google/go-licenses/v2@latest.

@jachym-tousek-keboola
Copy link
Author
jachym-tousek-keboola commented Mar 10, 2025

Wait there is a v2? The latest tag is 1.6.0. 🤔

Edit: Ah I see. It's a pre-release. 👍 But no updates since the first alpha was released it seems.

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
0