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

wireguard-go unknown revision #2034

Closed
changyp6 opened this issue May 4, 2023 · 4 comments
Closed

wireguard-go unknown revision #2034

changyp6 opened this issue May 4, 2023 · 4 comments

Comments

@changyp6
Copy link

changyp6 commented May 4, 2023

Latest code cannot use go mod download to get all the dependencies.
following error is reported:

github.com/sagernet/wireguard-go@v0.0.0-20221116151939-c99467f53f2c: invalid version: unknown revision c99467f53f2c

It seems that github.com/sagernet/wireguard-go@v0.0.0-20221116151939-c99467f53f2c doesn't exist any more.

@changyp6
Copy link
Author

changyp6 commented May 8, 2023

setting GOPRIVATE=github.com/sagernet/wireguard-go before go mod download doesn't help.
I checked github.com/sagernet/wireguard-go, it seems that wireguard-go in sagernet is rebased, abandoned previous modifications and commits.

So we can't find v0.0.0-20221116151939-c99467f53f2c

And xray cannot use the latest code of wireguard-go, because the API has been changed.

@changyp6
Copy link
Author

found a solution.
change
github.com/sagernet/wireguard-go v0.0.0-20221116151939-c99467f53f2c
to
github.com/xtls/wireguard-go v0.0.0-20230303120718-56f003b3a66e
in go.mod
then use command go mod tidy to update go.sum

Then, change all github.com/sagernet/wireguard-go to github.com/xtls/wireguard-go in wireguard related source codes.

@yuhan6665
Copy link
Member

solved

@g3sl
Copy link

g3sl commented Sep 2, 2023

It looks like the old version is still in the go.mod in main branch

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

3 participants