You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we found that some packages couldn't be installed by go install but could be installed by go build.
For example, suzuki-shunsuke/github-comment v5 can't be installed by go install.
$ go install github.com/suzuki-shunsuke/github-comment/v5/cmd/github-comment@v5.2.1go: github.com/suzuki-shunsuke/github-comment/v5/cmd/github-comment@v5.2.1: github.com/suzuki-shunsuke/github-comment@v5.2.1: invalid version: module contains a go.mod file, so module path must match major version ("github.com/suzuki-shunsuke/github-comment/v5")
$ go install github.com/suzuki-shunsuke/github-comment/cmd/github-comment@v5.2.1 go: github.com/suzuki-shunsuke/github-comment/cmd/github-comment@v5.2.1: github.com/suzuki-shunsuke/github-comment@v5.2.1: invalid version: module contains a go.mod file, so module path must match major version ("github.com/suzuki-shunsuke/github-comment/v5")
This is because github-comment's go.mod was wrong.
Feature Overview
Support installing packages by
go build
.Why is the feature needed?
Because some packages couldn't be installed by
go install
but could be installed bygo build
.aqua ever supported
go
type package, but it was abandoned at aqua v2 because we thought we could replace it togo_install
type package.But we found that some packages couldn't be installed by
go install
but could be installed bygo build
.For example, suzuki-shunsuke/github-comment v5 can't be installed by
go install
.This is because github-comment's go.mod was wrong.
https://github.com/suzuki-shunsuke/github-comment/blob/e5fd429b4d1bd84e8b825a2c7b693d6ac570022f/go.mod#L1
This issue was solved by github-comment v6, but github-comment v2 ~ v5 can't still be installed by
go install
.There are many Go tools that can't be installed by
go install
.How to reproduce the issue
No response
Workaround
No response
Example Code
There are two options.
go
type packagego_install
type package to supportgo build
Reference
The text was updated successfully, but these errors were encountered: