Skip to content

cmd/dist: distpack-generated module files can't be downloaded with go mod download #60847

Description

@heschi

While trying to release 1.21rc1 we hit this error from proxy.golang.org:

not found: unzip /tmp/gopath/pkg/mod/cache/download/golang.org/toolchain/@v/v0.0.1-go1.21rc1.linux-amd64.zip: golang.org/toolchain@v0.0.1-go1.21rc1.linux-amd64/src/cmd/go.mod: go.mod file not in module root directory
golang.org/toolchain@v0.0.1-go1.21rc1.linux-amd64/src/cmd/objdump/testdata/testfilenum/go.mod: go.mod file not in module root directory
golang.org/toolchain@v0.0.1-go1.21rc1.linux-amd64/src/crypto/internal/bigmod/_asm/go.mod: go.mod file not in module root directory
golang.org/toolchain@v0.0.1-go1.21rc1.linux-amd64/src/crypto/internal/edwards25519/field/_asm/go.mod: go.mod file not in module root directory
golang.org/toolchain@v0.0.1-go1.21rc1.linux-amd64/src/go.mod: go.mod file not in module root directory

dl2mod renamed go.mod files, but distpack doesn't.

cc @rsc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions