Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用了osx废弃的接口,导致运行单元测试时panic #8

Open
Etherflow opened this issue Mar 19, 2021 · 0 comments
Open

使用了osx废弃的接口,导致运行单元测试时panic #8

Etherflow opened this issue Mar 19, 2021 · 0 comments

Comments

@Etherflow
Copy link

【bug表现】
import tdmq后(无tag,版本号v0.0.0-20201223080047-23939971c835),在mac机器上跑带gomonkey的单元测试会报warning和panic(日志如下)
同样的代码在windows机器和linux机器能正常跑通,自查了一下似乎是依赖了keyring包,keyring又用了osx上废弃的接口导致的

# github.com/keybase/go-keychain
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant