Re:Python typosquatting is about more than typos
by LukeShu on Friday October 02, 2020 @04:09PM
(#24666560)
FWIW, `goimports` would say "OK, technically that's valid, but I'm going to complain unless you explicitly import it as 'emailnormalizer'".
import (
"fmt"
emailnormalizer "github.com/dimuska139/go-email-normalizer"
)
Re:Python typosquatting is about more than typos
by earthboundkid on Friday October 02, 2020 @11:30PM
(#24669285)
See https://github.com/golang/go/issues/29036 which is still open.
The package name is only the same as the last part of the URL in go by convention, and importing a package can put an arbitrary package identifier into your package scope.