Skip to content

Commit 0a35cb2

Browse files
committed
rename SKIP_DOWNLOAD -> BITCOIND_SKIP_DOWNLOAD
1 parent a4c044e commit 0a35cb2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ auto-download feature does exactly that. To successfully build under Nix the
9797
user must provide the tarball locally and specify its location via the
9898
`BITCOIND_TARBALL_FILE` env var.
9999

100-
Another option is to specify the `SKIP_DOWNLOAD` env var and provide the
100+
Another option is to specify the `BITCOIND_SKIP_DOWNLOAD` env var and provide the
101101
executable via the `PATH`.
102102

103103
Alternatively, use the dep without auto-download feature.

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ mod download {
7171
}
7272

7373
pub(crate) fn start() -> anyhow::Result<()> {
74-
if std::env::var_os("SKIP_DOWNLOAD").is_some() {
74+
if std::env::var_os("BITCOIND_SKIP_DOWNLOAD").is_some() {
7575
return Ok(());
7676
}
7777
let download_filename = download_filename();

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub enum Error {
123123
/// Returned when -rpcuser and/or -rpcpassword is used in `Conf` args
124124
/// It will soon be deprecated, please use -rpcauth instead
125125
RpcUserAndPasswordUsed,
126-
/// Returned when expecting an auto-downloaded executable but `SKIP_DOWNLOAD` env var is set
126+
/// Returned when expecting an auto-downloaded executable but `BITCOIND_SKIP_DOWNLOAD` env var is set
127127
SkipDownload,
128128
}
129129

@@ -138,7 +138,7 @@ impl fmt::Debug for Error {
138138
Error::EarlyExit(e) => write!(f, "The bitcoind process terminated early with exit code {}", e),
139139
Error::BothDirsSpecified => write!(f, "tempdir and staticdir cannot be enabled at same time in configuration options"),
140140
Error::RpcUserAndPasswordUsed => write!(f, "`-rpcuser` and `-rpcpassword` cannot be used, it will be deprecated soon and it's recommended to use `-rpcauth` instead which works alongside with the default cookie authentication"),
141-
Error::SkipDownload => write!(f, "expecting an auto-downloaded executable but `SKIP_DOWNLOAD` env var is set"),
141+
Error::SkipDownload => write!(f, "expecting an auto-downloaded executable but `BITCOIND_SKIP_DOWNLOAD` env var is set"),
142142
}
143143
}
144144
}
@@ -499,7 +499,7 @@ pub fn downloaded_exe_path() -> anyhow::Result<String> {
499499
/// Provide the bitcoind executable path if a version feature has been specified
500500
#[cfg(feature = "download")]
501501
pub fn downloaded_exe_path() -> anyhow::Result<String> {
502-
if std::env::var_os("SKIP_DOWNLOAD").is_some() {
502+
if std::env::var_os("BITCOIND_SKIP_DOWNLOAD").is_some() {
503503
return Err(Error::SkipDownload.into());
504504
}
505505

0 commit comments

Comments
 (0)