For a new version of CL 703015 I tried importing internal/syscall/windows from the new crypto/internal/fips140/entropy package.
I expected that to work according to https://pkg.go.dev/cmd/go#hdr-Internal_Directories, since crypto/internal/fips140/entropy is in the tree rooted at the parent of internal/, which should be the whole standard library.
Instead (building with GOOS=windows):
# crypto/internal/fips140test
package crypto/internal/fips140test (test)
imports crypto/internal/fips140/entropy
src/crypto/internal/fips140/entropy/now_noasm.go:10:2: use of internal package internal/syscall/windows not allowed
FAIL crypto/internal/fips140test [setup failed]
FAIL
/cc @golang/compiler
For a new version of CL 703015 I tried importing
internal/syscall/windowsfrom the newcrypto/internal/fips140/entropypackage.I expected that to work according to https://pkg.go.dev/cmd/go#hdr-Internal_Directories, since
crypto/internal/fips140/entropyis in the tree rooted at the parent ofinternal/, which should be the whole standard library.Instead (building with GOOS=windows):
/cc @golang/compiler