Skip to content

module declares its path as: nhooyr.io/websocket but was required as: github.com/coder/websocket #530

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
89ao opened this issue May 28, 2025 · 2 comments

Comments

@89ao
Copy link

89ao commented May 28, 2025

link #516 maybe relevant

when I do
go install -x github.com/coder/[email protected]
I got this error

root@ab187ccca348:/go/test# go install -x github.com/coder/[email protected]
go: warning: ignoring go.mod in $GOPATH /go
# get https://goproxy.io/github.com/@v/v1.8.7.info
# get https://goproxy.io/github.com/coder/@v/v1.8.7.info
# get https://goproxy.io/github.com/coder/@v/v1.8.7.info: 404 Not Found (0.083s)
# get https://goproxy.io/github.com/@v/v1.8.7.info: 404 Not Found (0.085s)
# get https://goproxy.io/github.com/coder/websocket/@v/list
# get https://goproxy.io/github.com/coder/websocket/@v/list: 200 OK (0.011s)
go: github.com/coder/[email protected]: version constraints conflict:
	github.com/coder/[email protected]: parsing go.mod:
	module declares its path as: nhooyr.io/websocket
	        but was required as: github.com/coder/websocket

could you please help me on how to download old version of websocket(for example 1.8.7) via goproxy.io?

@mafredri
Copy link
Member

Hi @89ao, is there any reason you can't use the latest version, v1.8.13 or v1.8.12? These should work fine with the github.com/coder/websocket import.

@89ao
Copy link
Author

89ao commented May 29, 2025

tks for your reply @mafredri. Unfortunately, I'm not the end-user. I'll advise our programmer to update to the latest version.

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