Make cmd/pscale `go install`-able
还没有人认领这个 Issue。
评估
调研方向
从 cmd/pscale 和 go.mod 中唯一的 replace 指令开始,然后运行 go install github.com/planetscale/cli/cmd/pscale@latest 以重现报告的失败。追踪被替换的依赖项,并验证该命令能够成功安装,且没有 replace 指令影响模块安装。
由索引模型根据 Issue 内容生成。
描述
It would be great if some of us Go users can install/update the pscale library by just doing go install github.com/planetscale/cli/cmd/pscale@latest
However, due to the 1 replace directive, go install refuses to install binaries that have a replace directive in them:
$ go install github.com/planetscale/cli/cmd/pscale@latest
go: downloading github.com/planetscale/cli v0.177.0
go: github.com/planetscale/cli/cmd/pscale@latest (in github.com/planetscale/cli@v0.177.0):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Looking at the go.mod file, there's only one replace clause, which seems like a hopefully small lift (by either changing the import path of the fork), or resolving whatever is being replaced upstream would unable this helpful feature.
Thanks!
- 主要语言
- Go
- 星标
- 670
- 派生
- 63
- 平均合并
- 11 小时 37 分钟
- 30 天内合并 PR
- 64
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
planetscale/cli 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
planetscale/cli#1172 ·
-
难度 4/5 3-5 天 新手友好度 42/100
planetscale/cli#980 · 1 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug group: validation priority: low
难度 2/5 1-3 小时 新手友好度 75/100
codecheckers/chekhov#51 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100