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

cmd/go: go install fails with malformed file path ("*" in png file path) #58595

Closed
InfoLibre opened this issue Feb 19, 2023 · 6 comments
Closed
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Unfortunate

Comments

@InfoLibre
Copy link

InfoLibre commented Feb 19, 2023

What version of Go are you using (go version)?

$ go version
go version go1.18.1 linux/amd64

Does this issue reproduce with the latest release?

?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/david/.cache/go-build"
GOENV="/home/david/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/david/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/david/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.18"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.18/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2800159434=/tmp/go-build -gno-record-gcc-switches"

What did you do?

$ go install framagit.org/InfoLibre/rapido@latest

It should download all the module package.

What did you see instead?

Nothing is downloaded and there's an error message because one of the file in the package contains * character: https://framagit.org/InfoLibre/rapido/-/blob/master/docs/diaspora*.png

Capture d’écran du 2023-02-19 12-13-05

@AlexanderYastrebov
Copy link
Contributor

Looks similar to #44776

@thanm thanm added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 21, 2023
@thanm thanm changed the title affected/package: go install cmd/go: go install fails with malformed file path ("*" in png file path) Feb 21, 2023
@thanm
Copy link
Contributor

thanm commented Feb 21, 2023

@golang/tools-team

I can reproduce this on tip.

@bcmills
Copy link
Contributor

bcmills commented Feb 22, 2023

The error is intentional, and the error message seems to be accurate.

You can't create a Go module containing a file with that name because it would be impossible to extract that module on Windows (https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions), and Go modules are intended to be downloadable on all platforms that Go supports.

@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2023
@InfoLibre
Copy link
Author

F* Windows!

@adonovan
Copy link
Member

adonovan commented Feb 22, 2023

F* Windows!

Perhaps you are looking for https://fsharp.org/use/windows/.

@InfoLibre
Copy link
Author

🤣

@golang golang locked and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Unfortunate
Projects
None yet
Development

No branches or pull requests

6 participants