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

Fix broken dependency locations #3240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jameshilliard
Copy link
Contributor

Should fix dependency downloads with GOPROXY=direct.

@paralin
Copy link

paralin commented Feb 5, 2025

Hi @lixmal , all, just pinging with a +1 as this is a blocker for us merging a Netbird package into the Buildroot distribution: https://buildroot.org

When we add it update Go packages we expect them to build with GOPROXY=direct

While this does not prevent the vulnerability discussed in the following link, it does help to indicate something has gone wrong somewhere when the code in the go proxy does not match the Git source. We also prefer to be able to build fetching directly from the git source instead of using the proxy on default. See; https://socket.dev/blog/malicious-package-exploits-go-module-proxy-caching-for-persistence and https://lore.kernel.org/all/CA+h8R2oJWZw_S08XXhjE--_So0UJohVLWSoj30PpR9z66x8U1A@mail.gmail.com/

Thanks for having a look at this!

@lixmal
Copy link
Contributor

lixmal commented Feb 5, 2025

Hi @jameshilliard and @paralin,
Thank you for submitting the PR and providing the reference links.
We have an ongoing effort to reduce our usage of replace directives, so adding new ones would go against our current goals.

Regarding the dependencies:

For go.opencensus.io: We don't have a direct import of this package - it's coming in as a transitive dependency through google.golang.org/api/admin/directory/v1.
From what I've seen newer versions don't use that import anymore, so bumping google.golang.org/api/admin/directory/v1 instead should be fine.

For nhooyr.io/websocket: Could you update the import statement directly in relay/client/dialer/ws/ws.go instead of using a replace directive?

Thanks for bringing this to our attention.

@paralin
Copy link

paralin commented Feb 5, 2025

@lixmal No problem, I will send a PR shortly!

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

Successfully merging this pull request may close these issues.

3 participants