writeas-cli
writeas-cli copied to clipboard
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")
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