cargo-bump icon indicating copy to clipboard operation
cargo-bump copied to clipboard

Workspace support

Open matthiasbeyer opened this issue 7 years ago • 4 comments

When executing cargo bump minor in a workspace root, I get:

cargo bump minor
thread 'main' panicked at 'package.version missing', libcore/option.rs:989:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I tested this with the imag source.

matthiasbeyer avatar Oct 17 '18 09:10 matthiasbeyer

Workspace workflows were a lot less common when I wrote this, I'll noodle on this today to see how other tools handle this.

wraithan avatar Jan 19 '19 16:01 wraithan

Awesome!

matthiasbeyer avatar Jan 19 '19 17:01 matthiasbeyer

It crashes more helpfully right now master, I'll hopefully have the ability to specify a package within a workspace soon, then I'll have to refactor stuff a bit so I can make an --all flag.

I don't plan on making a release until I have at least package specification working. This will likely come out at as 1.1.0 or maybe 2.0 if I have to replace the toml lib (which is looking likely)

(Deleted a duplicate comment, nothing of importance)

wraithan avatar Jan 19 '19 20:01 wraithan

If you replace the tomllib with toml-rs, have a look at toml-query as well. It might help in some places.

Sorry about the duplicated comment, I have bad internet right now.

matthiasbeyer avatar Jan 19 '19 23:01 matthiasbeyer