-
Notifications
You must be signed in to change notification settings - Fork 312
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
fix(testenv): disable downloads (bitcoind and electrsd) for docs.rs b… #1722
fix(testenv): disable downloads (bitcoind and electrsd) for docs.rs b… #1722
Conversation
Will adding these fix the test error you're seeing? diffdiff --git a/crates/bitcoind_rpc/Cargo.toml b/crates/bitcoind_rpc/Cargo.toml
index a3426007..6bf55262 100644
--- a/crates/bitcoind_rpc/Cargo.toml
+++ b/crates/bitcoind_rpc/Cargo.toml
@@ -20,9 +20,9 @@ bitcoin = { version = "0.32.0", default-features = false }
bitcoincore-rpc = { version = "0.19.0" }
bdk_core = { path = "../core", version = "0.3.0", default-features = false }
[dev-dependencies]
-bdk_testenv = { path = "../testenv", default-features = false }
+bdk_testenv = { path = "../testenv" }
bdk_chain = { path = "../chain" }
[features]
default = ["std"]
diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml
index 03c3783b..b34a8d72 100644
--- a/crates/electrum/Cargo.toml
+++ b/crates/electrum/Cargo.toml
@@ -16,9 +16,9 @@ workspace = true
bdk_core = { path = "../core", version = "0.3.0" }
electrum-client = { version = "0.21", features = [ "proxy" ], default-features = false }
[dev-dependencies]
-bdk_testenv = { path = "../testenv", default-features = false }
+bdk_testenv = { path = "../testenv" }
bdk_chain = { path = "../chain" }
[features]
default = ["use-rustls"]
diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml
index 2f42b4fd..3ebbd59c 100644
--- a/crates/esplora/Cargo.toml
+++ b/crates/esplora/Cargo.toml
@@ -22,9 +22,9 @@ futures = { version = "0.3.26", optional = true }
miniscript = { version = "12.0.0", optional = true, default-features = false }
[dev-dependencies]
bdk_chain = { path = "../chain" }
-bdk_testenv = { path = "../testenv", default-features = false }
+bdk_testenv = { path = "../testenv" }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
[features]
default = ["std", "async-https", "blocking-https"]
diff --git a/crates/testenv/Cargo.toml b/crates/testenv/Cargo.toml
index 85551673..2b939b59 100644
--- a/crates/testenv/Cargo.toml
+++ b/crates/testenv/Cargo.toml
@@ -16,9 +16,12 @@ readme = "README.md"
workspace = true
[dependencies]
bdk_chain = { path = "../chain", version = "0.20.0", default-features = false }
-electrsd = { version = "0.28.0", features = [ "legacy" ] }
+electrsd = { version = "0.28.0", features = [ "legacy" ], default-features = false }
+
+[dev-dependencies]
+bdk_testenv = { path = "." }
[features]
default = ["std", "download"]
download = ["electrsd/bitcoind_25_0", "electrsd/esplora_a33e97e1"] |
@ValuedMammal that did fix the test! At first I thought this might have unwanted side effects, but after some time I do think this is the solution we want! P.S. originally I was only able to confirm tests on explora as the tests for other clients were failing for me on master with: all tests are now passing for me locally with your proposed changes VM 🥳 |
Can you just squash the 2nd commit into the first ? then looks looks good to go. Thanks! |
d4fd746
to
fe34cc1
Compare
@notmandatory squashed and rebased to master |
Are you signing git commits also? |
7b9f349
to
f762cad
Compare
hmm never heard of this. looks like i managed to set it up, now my commits should be tagged as verified 👍 |
…uilds of crate testenv
f762cad
to
9b48fd4
Compare
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've been trying to reproduce the problem locally by running doc.rs locally, but got no success 😢.
It looks pretty straight-forward, and at least running cargo doc
locally worked just fine.
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.
ACK 9b48fd4 but I guess we won't know for sure until we publish the crate
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.
ACK 9b48fd4
…uilds of crate testenv
Description
address this issue #1627
where docs.rs build is failing for bdk_testenv crate
original PR: #1679
Notes to the reviewers
I was not able to reproduce the build issue locally, so this will have to be tested live unless someone else can reproduce the build error https://docs.rs/crate/bdk_testenv/0.10.0/builds/1377651
more details in this thread on discord https://discord.com/channels/753336465005608961/1265333904324427849/1304476756660719668
Bugfixes: