-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: optional download #72
feat: optional download #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK, this will also help reduce number of dependencies we need to pin for MSRV when download is disabled (eg. using nix to get the binaries).
Unrelated, but you should also fix the README example which still says |
Good call, I've fixed as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this,
ideally, a CI job without features using ELECTRS_EXEC
(downloaded by the CI) would be needed
fix Nix builds fix: missnamed const in lib.rs fix Nix builds
See if 6df6063 is enough |
squash me to d24
ci: test no auto-download features
Ok, this should be ready to merge now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env::set_var("ELECTRS_EXEC", "placeholder"); | ||
env::set_var("ELECTRS_EXE", "placeholder"); | ||
assert!(exe_path().is_err()); | ||
// unsetting because this errors everything in mod test! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the tests are run in parallel I have issues with this locally even with removes, I'll add #[ignore]
in a follow-up commit to avoid a roundtrip. (so that it can be launched individually with --include-ignored
)
- uses: dtolnay/rust-toolchain@stable | ||
- name: Install electrs | ||
# Automatically cache installed binaries to avoid compiling them each run | ||
uses: baptiste0928/cargo-install@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have gone wgetting the executable from the same url the autodownload feature is getting it, however this is more useful for testing latest version
0.26.0
bitcoind
:ELECTRS_EXE
->ELECTRS_EXEC
README.md
:bitcoind_23_0
->bitcoind_23_1
which
to find executablesThis makes a Nix CI pass, check: https://github.com/realeinherjar/bdk/actions/runs/6512925971/job/17691535222 (ignore the failed ones, MSRV, I am still working on those)
which
to detect electrs in thePATH
#68