Now that crypto/internal/fips140deps has been checked in,
we can enforce the full restrictions in the go command:
crypto/internal/fips can only import crypto/internal, not internal/...
Change-Id: I035470dbd478a5997c37ffabd268117969ed00a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/630135
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
if str.HasPathPrefix(p.ImportPath, "crypto/internal") {
return nil // crypto/internal/fips140 can use crypto/internal
}
- // TODO: Delete this switch once the usages are removed.
- switch p.ImportPath {
- case "internal/abi",
- "internal/testenv",
- "internal/cpu",
- "internal/goarch",
- "internal/asan",
- "internal/byteorder",
- "internal/godebug":
- return nil
- }
goto Error
}