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
package main
import (
"fmt""k8s.io/client-go/pkg/version"
)
funcmain() { fmt.Println(version.Get()) }
go mod download: k8s.io/client-go@v12.0.0+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required
[user@localhost trash]$ go get k8s.io/client-go@v12.0.0
go get: k8s.io/client-go@v12.0.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v12
[user@localhost trash]$ go run .
main.go:6:2: missing go.sum entry for module providing package k8s.io/client-go/pkg/version (imported by test); to add:
go get test
[user@localhost trash]$ go get test
What did you expect to see?
go: warning: k8s.io/client-go@v12.0.0+incompatible: retracted by module author: pre-module versions are obsolete
go: to switch to the latest unretracted version, run:
go get k8s.io/client-go@latest
[user@localhost trash]$
What did you see instead?
The go get is ending the printed string without a newline:
go: warning: k8s.io/client-go@v12.0.0+incompatible: retracted by module author: pre-module versions are obsolete
go: to switch to the latest unretracted version, run:
go get k8s.io/client-go@latest[user@localhost trash]$
The text was updated successfully, but these errors were encountered:
yeah, just found the fix as I was in the process of making a cl
carnott-snap
changed the title
cmd/go/internal/get: stdout does not end in new line
cmd/go/internal/modget: stdout does not end in new line
Mar 11, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Create the following
go.mod
file:Create the following
main.go
file:What did you expect to see?
What did you see instead?
The
go get
is ending the printed string without a newline:The text was updated successfully, but these errors were encountered: