pulsar-client-go icon indicating copy to clipboard operation
pulsar-client-go copied to clipboard

[issue 679][oauth2] Fix macos compiler warnings, remove store impleme…

Open llqgit opened this issue 3 years ago • 7 comments

…nt keyring which not used at all

Master Issue: #719

Motivation

Fix MacOS version warning from the unused OAuth2 store implement named keyring.go

Modifications

To fix the warning that on MacOS once for all by remove the keyring.go which no references from other places, rather than upgrade the keyring package.

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:

  • Dependencies (does it add or upgrade a dependency): (yes)
    • removed github.com/99designs/go-keychain

Documentation

  • Does this pull request introduce a new feature? (no)

llqgit avatar Feb 25 '22 08:02 llqgit

Any change to confirm PR ?

llqgit avatar Mar 25 '22 04:03 llqgit

@wolfstudy can you confirm this PR? thanks

hezhangjian avatar Mar 26 '22 08:03 hezhangjian

cc @zymap Please take a look thanks

wolfstudy avatar Apr 13 '22 03:04 wolfstudy

@zymap I got it and understand your point. And I still have a question about it.

If it should be kept for the users which choose this implementation, now what's your opinion about the users not use this extra implementation and still shown the warning below?

It is really annoying when you develop and run the program in every time.

image

llqgit avatar Apr 16 '22 03:04 llqgit

I saw the author has fixed this issue(https://github.com/keybase/go-keychain/pull/76). Could you please try to upgrade the dependency to check if it works?

zymap avatar Apr 18 '22 00:04 zymap

@zymap I just run:

go mod init my_project
go mod tidy

This is the official way to init, it should be all right. And the dependences like this:

image image

If I run my program, the errors shown like this: image

You said the new version of github.com/keybase/go-keychain fix the problem. So, if I just upgrade this package by go get github.com/keybase/go-keychain CMD.

The version would be: image

It should be good. But I got some new errors which looks worse:

image

By the way. My mac OS version

image

From my perspective, the warning problem was not fixed yet or not effective.

llqgit avatar Apr 18 '22 08:04 llqgit

@llqgit I think they remove the support to avoid the warning. keybase/go-keychain#76

ciiiii avatar Apr 21 '22 08:04 ciiiii