-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[bug]: can't build on debian #8872
Comments
Are you sure you installed go 1.22 correctly? If you run |
As mentioned in #6489, I was using hardcoded go version in Makefile until early this year. Since all the Makefile was recently reinvented, today I'm using the original one from the repo. Since changing
in
helps building the project and it's even running, I refuse to accept that anything is wrong with my debian (raspbian, to be specific). It rather seems the go version dependency is too strict and the issue #6489 is still not resolved. Official "Managing Go installations" docu says (https://go.dev/doc/manage-install):
To be super-precise here, I checked
Not only it seems not up-to-date (mentions 1.19) but also breaks user-wide compatibility of previous go binary with whatever other projects might be requiring go binary, possibly affects other users and is drastically different from the official Go project's recommendation whilst not providing any significant reason for why go should be installed like this. I can only guess it's "easier for the devs" but apparently the list of issues is growing. |
If you go to the "Linux" tap on the official Go project's page, these are exactly the steps it uses to install go... https://go.dev/doc/install |
Okay, I see. Your The installation instructions were recently updated: #8856 So I guess this is a duplicate of #6489 then? Since the root cause is the same. |
Go has a hard promise on backward compatibility. And there's no downside of using a newer version than a project requires. Therefore I don't think one project requiring a newer version (which is then installed system wide) should have any effect on other projects. |
Not exactly. #6489 would perhaps fix this one, but still there is a
Perhaps the language definition is never introducing breaking changes, yes. But the toolchain is frequently preventing old projects from building, e.g. requiring PS. I've found upstream issue thread too: golang/go#61888 - seems that there is a "new version format"? |
I can compile the current Can you try if this PR fixes the issue for you? #8900 |
No it doesn't.
However, setting
|
Of course you'd need to specify the I'll document things once we confirm this fully works for your use case. |
Background
go.mod
seems to have a non-supported three-number version dependencyYour environment
lnd
v0.18.1-betauname -a
on *Nix) debianbtcd
,bitcoind
, or other backend n/ago install golang.org/dl/go1.22.4@latest ; go1.22.4 download
Steps to reproduce
git clone; make install
Expected behaviour
It should build
Actual behaviour
Removing
.4
from the file mentioned seems to fix the issue. It uses the system-widego1.19.8
to build however. I am curious to edit the Makefile to hardcode usinggo1.22.4
in the build, but it works wine with 1.19.8. This should be checked prior to starting the build since1.21
is supposedly the minimum supported version.The text was updated successfully, but these errors were encountered: