go-keychain: Go test fails to compile
Go test fails to compile on my computer after installing the latest updates of Xcode command line tools, it worked fine until yesterday.
go test -v ./... -tags skipsecretserviceintegrationtests
# github.com/keybase/go-keychain
./macos_1.10.go:89:13: could not determine kind of name for C.SecTrustedApplicationCreateFromPath
FAIL github.com/keybase/go-keychain [build failed]
# github.com/keybase/go-keychain
./macos_1.10.go:89:13: could not determine kind of name for C.SecTrustedApplicationCreateFromPath
FAIL github.com/keybase/go-keychain/bindtest [build failed]
=== RUN TestNewKeypair
--- PASS: TestNewKeypair (0.00s)
=== RUN TestKeygen
--- PASS: TestKeygen (0.00s)
=== RUN TestEncryption
--- PASS: TestEncryption (0.00s)
=== RUN TestEncryptionRng
--- PASS: TestEncryptionRng (0.00s)
=== RUN TestPKCS7
--- PASS: TestPKCS7 (0.00s)
PASS
ok github.com/keybase/go-keychain/secretservice 0.015s
Xcode Version 10.2.1 (10E1001)
go version
go version go1.12.5 darwin/amd64
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (2 by maintainers)
It seems that
SecTrustedApplicationhas been introduced in macOS SDK 10.2: https://developer.apple.com/documentation/security/sectrustedapplicationI’d advise to drop a note in the README.