cmd/go: 'install' succeeds without a main module when given a non-main package #30053
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
https://go-review.googlesource.com/c/go/+/148517 works great, for the most part. I found this behavior, which confused me a bit.
Sounds to me like this should error;
install
shouldn't behave just likeget -d
when given non-main packages.Similarly,
go get mvdan.cc/xurls/v2
succeeds, but I presume it should fail. Onlygo get -d mvdan.cc/xurls/v2
should succeed./cc @bcmills @myitcv
The text was updated successfully, but these errors were encountered: