Closed lopopolo closed 4 years ago
The deserialized message is:
error: no matching package named artichoke-backend found
location searched: registry https://github.com/rust-lang/crates.io-index
required by package artichoke v0.1.0-pre.0 (/Users/lopopolo/dev/artichoke/artichoke)
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without the offline flag
Thanks for posting! Artichoke is awesome, and I found the playground implementation particularly interesting as someone who has never delved in WASM yet.
That said, now error messages produced by cargo package
are now human readable and a hint is provided on how to fix it (i.e. running cargo package
by hand).
When that is done in case of Artichoke, it fails permanently with the following:
Error: error: all path dependencies must have a version specified when packaging.
dependency `artichoke-backend` does not specify a version.
To try fixing this, run 'cargo package' by hand before running 'cargo diet' again.
Thus I believe Artichoke can't run cargo diet unless packaging works.
If you believe cargo diet
could handle this situation (better), please let me know.
Version 1.1.2 contains the improvements mentioned above.
Even though I am closing the issue, I am happy to continue the conversation if there is anything else that could be done to make cargo diet more useful for the kind of projects you would like to use it with.