You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/26 20:29:20 UTC

[GitHub] [pulsar-client-go] pgier opened a new pull request #719: [issue 679][oauth2] Fix macos compiler warnings

pgier opened a new pull request #719:
URL: https://github.com/apache/pulsar-client-go/pull/719


   This upgrades the dependency from the oauth2 module to 99designs/keyring to
   remove the compiler warnings on macos.
   
   Fixes #679
   
   ### Motivation
   
   *Explain here the context, and why you're making that change. What is the problem you're trying to solve.*
   
   Building on recent versions of OSX/MacOS outputs the following compiler warnings.
   
   ```
   cgo-gcc-prolog:81:11: warning: 'SecKeychainCreate' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:301:10: note: 'SecKeychainCreate' has been explicitly marked deprecated here
   cgo-gcc-prolog:139:11: warning: 'SecKeychainLock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:357:10: note: 'SecKeychainLock' has been explicitly marked deprecated here
   cgo-gcc-prolog:159:11: warning: 'SecKeychainOpen' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:287:10: note: 'SecKeychainOpen' has been explicitly marked deprecated here
   cgo-gcc-prolog:183:11: warning: 'SecKeychainUnlock' is deprecated: first deprecated in macOS 12.0 - Custom keychain management is no longer supported [-Wdeprecated-declarations]
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:347:10: note: 'SecKeychainUnlock' has been explicitly marked deprecated here
   cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here
   ```
   ### Modifications
   
   The warnings are coming from the dependency on 99designs/keyring.  This PR upgrades to the latest master of that project in order to remove the compiler warnings, and avoid some potential build failures as described in #679 
   
   ### Verifying this change
   
   - [ X ] Make sure that the change passes the CI checks.
   
   This change is already covered by existing tests, such as *(please describe tests)*.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (yes)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] merlimat merged pull request #719: [issue 679][oauth2] Fix macos compiler warnings

Posted by GitBox <gi...@apache.org>.
merlimat merged pull request #719:
URL: https://github.com/apache/pulsar-client-go/pull/719


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] mihaitodor commented on pull request #719: [issue 679][oauth2] Fix macos compiler warnings

Posted by GitBox <gi...@apache.org>.
mihaitodor commented on pull request #719:
URL: https://github.com/apache/pulsar-client-go/pull/719#issuecomment-1033801491


   Thank you for submitting this PR! Hope it can be merged soon, since other downstream projects are facing build errors because of this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] llqgit commented on pull request #719: [issue 679][oauth2] Fix macos compiler warnings

Posted by GitBox <gi...@apache.org>.
llqgit commented on pull request #719:
URL: https://github.com/apache/pulsar-client-go/pull/719#issuecomment-1050615587


   I have studied the source code of pulsar OAuth2 sub mod project.
   I found that the "store" implements with TWO way, one is memory mode that is using, another is keyring mode that not used at all.
   But the warning with macOS is because of the keyring implement that not used.
   So I wonder could I remove it once for all?
   
   <img width="347" alt="image" src="https://user-images.githubusercontent.com/8063914/155676255-5d79f255-6e3f-4e38-ade4-71f1da0da5ef.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org