-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi,
GO111MODULES=off go install github.com/github/depstubber not working because go install needs version. But there is no release in the repository, so it can not download it.
My Golang Version :
➜ ~ go version
go version go1.21.1 darwin/arm64
➜ ~ GO111MODULES=off go install github.com/github/depstubber
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/github/depstubber@latest' to install the latest version
If you give latest
➜ ~ GO111MODULES=off go install github.com/github/depstubber@latest
go: github.com/github/depstubber@latest (in github.com/github/depstubber@v0.0.0-20231102105647-87e272f60ed7):
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.
I think the solution is creating a release or install it from source.
git clone https://github.com/github/depstubber
cd depstubber
go build .
./depstubber -h
Metadata
Metadata
Assignees
Labels
No labels