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

go install github.com/writeas/writeas-cli/cmd/[email protected] -> go: github.com/writeas/writeas-cli/cmd/[email protected]: github.com/writeas/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/writeas/writeas-cli/v2") #55

Open
canhand opened this issue May 21, 2024 · 0 comments

Comments

@canhand
Copy link

canhand commented May 21, 2024

Overview
go get github.com/writeas/writeas-cli/cmd/writeas
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

Background
go install github.com/writeas/writeas-cli/cmd/writeas
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/writeas/writeas-cli/cmd/writeas@latest' to install the latest version
go install github.com/writeas/writeas-cli/cmd/writeas@latest
go: downloading github.com/writeas/writeas-cli v0.1.1
go: github.com/writeas/writeas-cli/cmd/writeas@latest: module github.com/writeas/writeas-cli@latest found (v0.1.1), but does not contain package github.com/writeas/writeas-cli/cmd/writeas
go install github.com/writeas/writeas-cli/cmd/[email protected]
go: github.com/writeas/writeas-cli/cmd/[email protected]: github.com/writeas/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/writeas/writeas-cli/v2")
go install github.com/writeas/writeas-cli/cmd/writeas@v2
go: github.com/writeas/writeas-cli/cmd/writeas@v2: no matching versions for query "v2"
go install github.com/writeas/writeas-cli/cmd/[email protected]
go: github.com/writeas/writeas-cli/cmd/[email protected]: no matching versions for query "v2.0"

Dependencies
go env GOPATH
/Users/canhand/go
go version
go version go1.22.0 darwin/arm64

@canhand canhand changed the title go install github.com/writeas/writeas-cli/cmd/[email protected] [10:57:43] go: github.com/writeas/writeas-cli/cmd/[email protected]: github.com/writeas/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/writeas/writeas-cli/v2") go install github.com/writeas/writeas-cli/cmd/[email protected] -> go: github.com/writeas/writeas-cli/cmd/[email protected]: github.com/writeas/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/writeas/writeas-cli/v2") May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant