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

Dependency issue with bufbuild/protovalidate-go #3661

Open
lukasbindreiter opened this issue Mar 5, 2025 · 1 comment
Open

Dependency issue with bufbuild/protovalidate-go #3661

lukasbindreiter opened this issue Mar 5, 2025 · 1 comment

Comments

@lukasbindreiter
Copy link

Hi,

Our go package has a dependency on github.com/bufbuild/buf (we are using it in a tools.go and haven't upgraded to the new go tools yet) - which means we also upgrade it from time to time with our other dependencies, most of the time using a simple go get -u ./...

For a while now however this always fails and results in a depdency conflict.

The error message looks like this:

go: finding module for package github.com/bufbuild/protovalidate-go/resolver
go: finding module for package github.com/bufbuild/protovalidate-go/celext
go: github.com/tilebox/tilebox-go imports
        github.com/bufbuild/buf/cmd/buf imports
        github.com/bufbuild/buf/private/buf/cmd/buf imports
        github.com/bufbuild/buf/private/buf/cmd/buf/command/beta/bufpluginv1 imports
        github.com/bufbuild/buf/private/bufpkg/bufcheck/bufcheckserver imports
        github.com/bufbuild/buf/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverbuild imports
        github.com/bufbuild/buf/private/bufpkg/bufcheck/bufcheckserver/internal/bufcheckserverhandle imports
        github.com/bufbuild/buf/private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate imports
        github.com/bufbuild/protovalidate-go/celext: module github.com/bufbuild/protovalidate-go@latest found (v0.9.2), but does not contain package github.com/bufbuild/protovalidate-go/celext

It's related to the resolver package here: https://github.com/bufbuild/protovalidate-go being renamed to resolve. It is still used though using the old name: https://github.com/bufbuild/buf/blob/main/private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate/buflintvalidate.go#L21

So if go tries to upgrade both bufbuild/buf and protovalidate-go to the latest version, it will fail.

Would it be possible to update the import in buflintvalidate in an upcoming release, such that auto upgrade works again? Would be greatly appreciated!

@emcfarlane
Copy link
Contributor

Hello, this is being looked into in #3652 , though the method of installation is not a supported type. See the list of supported installs here.

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