Skip to content

cmd/go: go get -u=patch golang.org/x/tools broken at head #32537

@bcmills

Description

@bcmills

The fix for #26902 seems to have broken -u=patch when the command-line argument is a module that does not contain a package at its root.

$ gotip version
go version devel +323212b9 Sun Jun 9 16:23:11 2019 +0000 linux/amd64

$ mkdir example.com

$ cd example.com

example.com$ gotip mod init example.com
go: creating new go.mod: module example.com

example.com$ gotip get -u=patch golang.org/x/tools
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20190610194359-fe937a7521e5
go: extracting golang.org/x/tools v0.0.0-20190610194359-fe937a7521e5
go get golang.org/x/tools: module golang.org/x/tools@latest (v0.0.0-20190610194359-fe937a7521e5) found, but does not contain package golang.org/x/tools

CC @jayconrod @jba

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions