-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
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() { |
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.
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
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.
That's what I intended, caller can unset the var if it doesn't need it.
I can change it as preferred of course
Should we document the flag in the |
utACK 138a55f with comments, code review |
Maybe prefix the env var name with |
BITCOIND_SKIP_DOWNLOAD
is set
utACK 0a35cb2 |
this can be handy in nix environment where build script cannot hit the internet but dev-dependencies specify the auto download feature.