It didn't work either time. In the second case it just did some other
stuff before noticing.
Before modules, it made sense to "go install" a non-main package: that
would build the package and set it up to be imported by other
packages. With modules, though, it doesn't make any sense. The
go.mod file specifies exactly what version of a non-main package to
use. And the compiled form of packages is stored in the package
cache. Installing a non-main package isn't going to affect how
anything else is built. For a while it was available essentially a
no-op. Now it gets an error.
Ian