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

Install failed with go 1.18 on darwin #260

Closed
DonRenando opened this issue Mar 17, 2022 · 3 comments
Closed

Install failed with go 1.18 on darwin #260

DonRenando opened this issue Mar 17, 2022 · 3 comments

Comments

@DonRenando
Copy link

DonRenando commented Mar 17, 2022

Hello !

  • What are you trying to do?
    Upgrade go to 1.18 and install nancy

  • What feature or behavior is this required for?
    Upgrade go from 1.17 to 1.18 on darwin and install nancy with :
    go build -v -o=../bin/nancy github.com/sonatype-nexus-community/nancy

  • How could we solve this issue? (Not knowing is okay!)
    Indirect dependency on an old version of x/sys that breaks when running go install with go 1.18.
    The fix appears to be to upgrade the dependency on x/sys. x/debug/internal/core: build broken on darwin since at least 2021-10-28 golang/go#49219
    with the latest version of golang.org/x/sys: v0.0.0-20220317061510-51cd9980dadf everything works again

The dependency come from go-sona-types

go mod graph | grep golang.org/x/sys@v0.0.0-20200519105757-fe76b779f299
github.com/sonatype-nexus-community/go-sona-types golang.org/x/sys@v0.0.0-20200519105757-fe76b779f299

An issue has been opened : sonatype-nexus-community/go-sona-types#23

  • Anything else?
    No

Thank you

cc @bhamail / @DarthHater

@DonRenando DonRenando changed the title Install failled with go 1.18 on darwin Install failed with go 1.18 on darwin Mar 17, 2022
@bhamail
Copy link
Contributor

bhamail commented Mar 18, 2022

@DonRenando Thanks for the patch! I've released a new build of nancy (v1.0.33) that uses the patched go-sona-types. Could you please verify if this fixes the install problem on go v1.18?

@DonRenando
Copy link
Author

thank you @bhamail ! the upgrade has fixed the problem on go v1.18.

@bhamail
Copy link
Contributor

bhamail commented Mar 21, 2022

@bhamail bhamail closed this as completed Mar 21, 2022
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

2 participants