axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.31k stars 56 forks source link

tests: add generic workspace tests #1150

Closed mistydemeo closed 1 week ago

mistydemeo commented 2 weeks ago

This adds a test running on a generic workspace, specifically covering the mixed-content workspace. Right now, we expect cargo-dist to only cover the generic half and not be able to find the other half.

I duplicated the "patch Cargo.toml" logic because the structure is a bit different and I didn't feel like genericizing the original method at this point.

This doesn't actually work yet: the output indicates that it patched dist-workspace.toml with the expected content, but the cargo build acts like it's working on the unpatched file. I'm sure I missed something obvious I'll see in the morning.