Skip to content

Installation Problem about "go install" #22

@aydinnyunus

Description

@aydinnyunus

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions