crates icon indicating copy to clipboard operation
crates copied to clipboard

Pre-release versions show up as an "X" by default

Open kotx opened this issue 4 years ago • 4 comments

Describe the bug Pre-release versions will show up as an "X" despite being newer than the latest releases, unless crates.listPreReleases is true. However, this config setting also lists pre-release versions in the version list, which may not be desired.

To Reproduce Steps to reproduce the behavior:

  1. Use a RC or beta version of a crate like rocket 0.5.0-rc.1
  2. See the "X" in Cargo.toml
  3. Set crates.listPreReleases to true
  4. See the absence of the "X"

Expected behavior Pre-release versions should not error even when crates.listPreReleases is set to false.

Screenshots

image image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 21H2 (22000.282)

kotx avatar Oct 31 '21 20:10 kotx

I would agree especially because the settings flag is global. This makes it difficult to use everywhere because some projects I am using pre-releases but others I dont.

Maybe it would be possible to have pre-releases marked with a yellow warning or something similar when the allow-pre-release setting is turned off. (And a similar warning when not using pre-releases when the setting is turned on).

I know this isn’t exactly what you are asking for, but would this resolve your issue?

msdrigg avatar Nov 01 '21 13:11 msdrigg

That looks good to me!

kotx avatar Nov 01 '21 14:11 kotx