axodotdev / cargo-dist

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

Unable to use for library only crate #1549

Closed endoze closed 1 week ago

endoze commented 1 week ago

I'm trying to use dist to for announcement only releases on my crate axum-rails-cookie, but currently when running the latest version of dist locally with my crate I continually get an error.

Screenshot 2024-11-12 at 1 58 12 PM

Any guidance with what I'm doing wrong would be greatly appreciated!

duckinator commented 1 week ago

dist assumes you're only releasing executable binaries by default, but you can force it to release a library by changing --tag={version} to --tag={name}-{version}

Can you try dist plan --tag="axum-rails-cookie-v0.1.0" and let me know if that works for you?

endoze commented 1 week ago

Here's the output as requested, still no dice. I tried both the crate name and the lib name:

Screenshot 2024-11-12 at 5 20 21 PM
duckinator commented 1 week ago

Thanks for trying that. That should have worked, so this definitely looks like a bug. I'm looking into it now; I'll let you know when I have more information.

duckinator commented 1 week ago

This should be fixed by #1551.

endoze commented 1 week ago

This does indeed fix my issue, thank you very much!