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

`--unpublished` flag doesn't work with private registries.

Open emilycf-cw opened this issue 2 years ago • 5 comments

The --unpublished flag only skips crates which are published in the crates.io registry. If I am instead using a private registry, none of my crates will be published there, so this flag does nothing.

emilycf-cw avatar Apr 21 '23 16:04 emilycf-cw

i'm having the same issue

scullionw avatar Jun 21 '23 18:06 scullionw

@epage is this expected behaviour?

scullionw avatar Jun 27 '23 02:06 scullionw

It is not. In general, custom registry support is weak as I don't have any scenarios I can test it on.

Minimum Steps

  • Convert registry names to registry URLs using this cargo-edit code
  • Correctly initialize crates_index::Index from the correct URL

Next-level steps

  • Mirror cargo in determining the default registry that should be used for publish

Related #368

epage avatar Jun 27 '23 16:06 epage