Closed
Description
We have received a report of compilation failure with GOOS
is aix
(see caddyserver/caddy#5970). The build failure reports the following:
# github.com/google/certificate-transparency-go/x509
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/cert_pool.go:65:9: undefined: loadSystemRoots
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/root.go:21:32: undefined: loadSystemRoots
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/verify.go:759:12: c.systemVerify undefined (type *Certificate has no field or method systemVerify)
The 3 errors listed in the error message report functions/methods that are defined in root_unix.go
. The build tags exclude AIX
. I believe the extensive list can be replaced with the new unix
build tag (implemented here golang/go@c3fcd01) that will include any Unix-like system by default. This avoids such hassles in the future. FWIW, AIX supports SSL_CERT_DIR
and SSL_CERT_FILE
if you prefer to be explicit about the supported OS.
Metadata
Metadata
Assignees
Labels
No labels