Skip to content

Commit 9f5b996

Browse files
Merge pull request #174 from fibonacci1729/fix-publishing
Fix dev-dependencies for publishing
2 parents 3f0b94b + 0a98ecd commit 9f5b996

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

ci/publish.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ fn verify(crates: &[Crate]) {
379379
fn verify_and_vendor(krate: &Crate) {
380380
let mut cmd = Command::new("cargo");
381381
cmd.arg("package")
382+
.arg("--allow-dirty")
382383
.arg("--manifest-path")
383384
.arg(&krate.manifest)
384385
.env("CARGO_TARGET_DIR", "./target");

crates/wac-parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ wasm-metadata = { workspace = true }
2525
miette = { workspace = true, features = ["serde"]}
2626

2727
[dev-dependencies]
28-
wac-resolver = { workspace = true, default-features = false, features = ["wat", "wit"] }
28+
wac-resolver = { path = "../wac-resolver", default-features = false, features = ["wat", "wit"] }
2929
owo-colors = "4.0.0"
3030
pretty_assertions = { workspace = true }
3131
pretty_env_logger = { workspace = true }

crates/wac-resolver/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ tokio = { workspace = true, optional = true }
2828
futures = { workspace = true, optional = true }
2929

3030
[dev-dependencies]
31-
wac-graph = { workspace = true }
31+
wac-graph = { path = "../wac-graph" }
3232
wasmprinter = { workspace = true }
3333
warg-server = { workspace = true }
34+
wit-parser = { workspace = true }
3435
pretty_assertions = { workspace = true }
3536
tokio-util = "0.7.10"
3637
tempdir = "0.3.7"

crates/wac-resolver/tests/support/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub async fn publish_wit(
4646
use std::io::Write;
4747
let mut resolve = Resolve::new();
4848
let mut tmp = tempfile::NamedTempFile::new()?;
49-
tmp.write(wit.as_bytes())?;
49+
tmp.write_all(wit.as_bytes())?;
5050
let path = tmp.path();
5151
let pkg = resolve
5252
.push_file(path)

0 commit comments

Comments
 (0)