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

Cannot update nak to latest #26

Closed
mplorentz opened this issue Jul 23, 2024 · 3 comments
Closed

Cannot update nak to latest #26

mplorentz opened this issue Jul 23, 2024 · 3 comments

Comments

@mplorentz
Copy link

mplorentz commented Jul 23, 2024

I tried to update nak by running go install github.com/fiatjaf/nak@latest but it says:

go: github.com/fiatjaf/nak@latest (in github.com/fiatjaf/nak@v0.4.2):                                     
        The go.mod file for the module providing named packages contains one or                           
        more replace directives. It must not contain directives that would cause                          
        it to be interpreted differently than if it were the main module.

The AI told me to contact the maintainer, and I do whatever AI tells me to.

go version go1.22.5 darwin/arm64

@fiatjaf
Copy link
Owner

fiatjaf commented Jul 23, 2024

Oh, wow. Thank you for opening this, I didn't know go install behaved like that.

My replace directive is purely deterministic, so it shouldn't be triggering this error, but apparently golang/go#44840 disagrees and sees no reason to fix this bug.

I guess I'll have to do something.

@fiatjaf
Copy link
Owner

fiatjaf commented Jul 23, 2024

Should work now on v0.5.0.

@mplorentz
Copy link
Author

Works for me! Thanks.

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