golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.92k stars 17.65k forks source link

gosumdb: "not found: create zip: docker/node:alpine: malformed file path "docker/node:alpine": invalid char ':'" #66243

Closed inteon closed 8 months ago

inteon commented 8 months ago

Go version

go version go1.22.1 linux/amd64

Output of go env in your module/workspace:

N/A

What did you do?

$ go get github.com/DopplerHQ/cli@v0.5.9
go: downloading github.com/DopplerHQ/cli v0.5.9
go: github.com/DopplerHQ/cli@v0.5.9: create zip: docker/node:alpine: malformed file path "docker/node:alpine": invalid char ':'
docker/python:alpine: malformed file path "docker/python:alpine": invalid char ':'
docker/ruby:alpine: malformed file path "docker/ruby:alpine": invalid char ':'

What did you see happen?

gosumdb is returning an unexpected error (see https://sum.golang.org/lookup/github.com/!doppler!h!q/cli@v0.5.9):

not found: create zip: docker/node:alpine: malformed file path "docker/node:alpine": invalid char ':'
docker/python:alpine: malformed file path "docker/python:alpine": invalid char ':'
docker/ruby:alpine: malformed file path "docker/ruby:alpine": invalid char ':'

What did you expect to see?

No error or a different error.

SgtCoDFish commented 8 months ago

It looks like this is because there are files in this repo which have colons in them: https://github.com/DopplerHQ/cli/tree/v0.5.9/docker

The error appears to be propagated to the sumdb. Same happens with v0.5.10:

seankhliao commented 8 months ago

Duplicate of #45549