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

coze-discord-proxy未按照go modules要求处理module path #226

Closed
4 tasks done
HappyHacker123 opened this issue Oct 6, 2024 · 1 comment
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@HappyHacker123
Copy link

温馨提示: 未star项目会被自动关闭issue哦!

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
现在coze-discord-proxy使用go modules并且最新的release version是v4.6.2,但设置的module path是'coze-discord-proxy',而按官方规则应该设置为'github.com/deanxv/coze-discord-proxy/v4', 可以看官方文档

A package that has opted in to modules must include the major version in the import path to import any v2+ modules. 
To preserve import compatibility, the go command requires that modules with major version v2 or later use a module path with that major version as the final element.
For example, version v2.0.0 of example.com/m must instead use module path example.com/m/v2.

复现步骤
尝试用go get下载coze-discord-proxy时出错

root@iZj6c5flh0q5ax3d1ttfuhZ:~/temp/go-collectd# go get github.com/deanxv/coze-discord-proxy@v4.6.2
go: github.com/deanxv/coze-discord-proxy@v4.6.2: invalid version: module contains a go.mod file, so module path must match major version ("github.com/deanxv/coze-discord-proxy/v4")

预期结果
能够正常下载
相关截图
图片

解决措施
修改module path以遵循Go Modules规范(推荐)

@HappyHacker123 HappyHacker123 added the bug Something isn't working label Oct 6, 2024
@deanxv
Copy link
Owner

deanxv commented Oct 6, 2024

该项目为后端服务,并非mod依赖或sdk项目。

@deanxv deanxv closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants