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

skip auto download when BITCOIND_SKIP_DOWNLOAD is set #154

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

RCasatta
Copy link
Collaborator

@RCasatta RCasatta commented Apr 2, 2024

this can be handy in nix environment where build script cannot hit the internet but dev-dependencies specify the auto download feature.

this can be handy in nix environment where build script cannot hit the
internet but dev-dependencies specify the auto download feature.
build.rs Outdated
@@ -71,6 +71,9 @@ mod download {
}

pub(crate) fn start() -> anyhow::Result<()> {
if std::env::var_os("SKIP_DOWNLOAD").is_some() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok if we don't care about the SKIP_DOWNLOAD value? ie if SKIP_DOWNLOAD is set to "false" or 0 and we skip the download

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I intended, caller can unset the var if it doesn't need it.
I can change it as preferred of course

@LeoComandini
Copy link
Collaborator

Should we document the flag in the README ?

@LeoComandini
Copy link
Collaborator

utACK 138a55f with comments, code review

@shesek
Copy link
Contributor

shesek commented Apr 3, 2024

Maybe prefix the env var name with BITCOIND_ like with BITCOIND_TARBALL_FILE?

@RCasatta RCasatta changed the title skip auto download when SKIP_DOWNLOAD is set skip auto download when BITCOIND_SKIP_DOWNLOAD is set Apr 4, 2024
@LeoComandini
Copy link
Collaborator

utACK 0a35cb2

@RCasatta RCasatta merged commit 0a35cb2 into master Apr 4, 2024
17 checks passed
shesek added a commit to shesek/electrumd that referenced this pull request Apr 5, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants