-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
blockbook: 0.3.2 -> 0.3.3 #86957
blockbook: 0.3.2 -> 0.3.3 #86957
Conversation
I think this should just be patched upstream - I have a temporary patch at https://termbin.com/5t4z, but validation is beyond my willingness, since this project doesn't use go modules, and go test didn't work for me on a normal clone. If you get the upstream project to use go modules, I promise to run the tests on my patch and fix anything that breaks :) With regards to this breaking on 1.14, I think the solution here is to make sure we run the tests as part of hydra build + make sure there is a test which covers this :D Let me know if you need advice, I haven't dug into this closely, but many packages (including go 1.14) have tests which run inside hydra. |
@c00w doesn't look like it compiles with that patch.
|
Upstream seems active. Have you reported this issue? |
Yes, they've confirmed they're going to fix it before 1.13 runs out of support but there's no ETA. Could take weeks or a few months. Moreover, they're planning on switch to modules soon: https://github.com/trezor/blockbook/tree/gomod (this should be implemented sooner as they've already prepared the branch). I've even sent the patch to blockbook devs but they said it's more complicated than that (will take more effort on their part). |
@mmahut Yep - I couldn't get the project to build and didn't want to mess with it - let me see if I can just pull the go mod fork and fix it there. |
Go mod fork doesn't build + their build scripts require docker, I'll just hack this out using nix to build :) |
@1000101 - try should be usable with
I can confirm it builds on my machine, but not much else. |
If you apply the patch, please also send it upstream. |
Unfortunately, it doesn't work (application crashes on startup). The question is, do we really need to patch it at all? Upstream will fix this in a few weeks and then we can drop go1.13 for good, if we hate it that much :). But there's no point in having a broken package in nixpkgs. Regarding module development (which I want to partake) - of course I coul work on the module definition in my own repo where 1.13 still exists, but that's not the main issue. |
Upstream has released a new version with 1.14 support along with migration to modules. |
@mmahut ready for review |
@GrahamcOfBorg build blockbook |
I've removed aarch64-linux from platforms since to run blockbook properly, you need at least 32GB RAM, so it's not really feasible on most ARM systems anyway. |
Don't say that :)
|
However it is fine from my side to remove aarch64 since it fails to link against rocksdb. |
Wow, I had to edit my previous comment! But the thing is, I've seen many people troubleshooting blockbook on rpi. And obviously it always crashes on rocksdb due to insufficient RAM.
I've reported it to upstream but since aarch64 is not really supported, I'm afraid it won't get fixed anytime soon. |
Result of 1 package built:- blockbook |
Motivation for this change
Number behavior in 1.14 has changed: golang/go#37308 and it breaks the current (0.3.2) version of blockbook (prevents it from starting).
Moreover, I've added few parameters during build so the resulting application will have nicer UI (version+commit instead of unknown/unknown). I have left the buildtime unknown as it would render the package non-reproducible and the resulting binary file hash would change, too.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)