Skip to content

cmd/go: implicit go install of std in $GOROOT/src has weird error #31446

@bradfitz

Description

@bradfitz

I did this by mistake (hit enter too early) and then noted the kinda weird error message:

bradfitz@go:~/go/src$ go install
can't load package: package std: unknown import path "std": cannot find module providing package std
bradfitz@go:~/go/src$ go install std
bradfitz@go:~/go/src$ echo $?
0

I guess it's correct, as "std" is some alias rather than a package, but maybe it can be made to just work, or have a more helpful error.

Low priority.

/cc @bcmills

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions