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

Remove or Replace Dependency on github.com/rjeczalik/notify #26168

Closed
kalverra opened this issue Nov 12, 2022 · 7 comments · Fixed by #26176
Closed

Remove or Replace Dependency on github.com/rjeczalik/notify #26168

kalverra opened this issue Nov 12, 2022 · 7 comments · Fixed by #26176
Labels

Comments

@kalverra
Copy link

System information

❯ geth version
Geth
Version: 1.10.26-stable
Architecture: amd64
Go Version: go1.19.3
Operating System: darwin

Expected behavior

Develop a project that uses geth as a dependency on a Mac with no errors.

Actual behavior

I have a couple of projects that utilize geth as a package, and my main dev environment is on a Mac. Since the latest Mac update, running tests in these projects have produced the below error.

cgo-gcc-prolog:217:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here

It seems this error is produced from the github.com/rjeczalik/notify package. There is an issue filed, but the project's latest commit was Aug 9, 2021.

❯ go mod why github.com/rjeczalik/notify
# github.com/rjeczalik/notify
github.com/kalverra/crazed-nft-fans/client
github.com/ethereum/go-ethereum/accounts/abi/bind
github.com/ethereum/go-ethereum/accounts/keystore
github.com/rjeczalik/notify

Steps to reproduce the behaviour

Run tests on any project that uses geth on the latest MacOS update.

@Donabbaskid
Copy link

System information

❯ geth version
Geth
Version: 1.10.26-stable
Architecture: amd64
Go Version: go1.19.3
Operating System: darwin

Expected behavior

Develop a project that uses geth as a dependency on a Mac with no errors.

Actual behavior

I have a couple of projects that utilize geth as a package, and my main dev environment is on a Mac. Since the latest Mac update, running tests in these projects have produced the below error.

cgo-gcc-prolog:217:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here

It seems this error is produced from the github.com/rjeczalik/notify package. There is an issue filed, but the project's latest commit was Aug 9, 2021.

❯ go mod why github.com/rjeczalik/notify
# github.com/rjeczalik/notify
github.com/kalverra/crazed-nft-fans/client
github.com/ethereum/go-ethereum/accounts/abi/bind
github.com/ethereum/go-ethereum/accounts/keystore
github.com/rjeczalik/notify

Steps to reproduce the behaviour

Run tests on any project that uses geth on the latest MacOS update.
#26168 (comment)

@holiman
Copy link
Contributor

holiman commented Nov 12, 2022 via email

@yantianlei
Copy link

Yes, I tried to modify this project and found that there are many changes, and I am not very familiar with it.

@smart-t
Copy link

smart-t commented Nov 23, 2022

@holiman since I noticed you merged this in the master. I was wondering when this will be tagged? In v1.10.26 I found the reference to the old lib (link). Maybe it is me not familiar with your release process?

@rootulp
Copy link

rootulp commented Jan 10, 2023

Since #26176 has the milestone 1.11.0, I expect this change to be released in 1.11.0 @smart-t

@montanaflynn
Copy link

While waiting for 1.11.0 to release a quick fix is to upgrade https://github.com/rjeczalik/notify to v0.9.3 with:

go get -u github.com/rjeczalik/notify@v0.9.3

@Donabbaskid
Copy link

Donabbaskid commented Jan 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants