vrchat-community / creator-companion

The Entry Point for Making Things in VRChat
https://vrchat.com/home/download
53 stars 357 forks source link

[BUG] You can't remove packages with invalid version, but you can add them #420

Open GotoFinal opened 6 months ago

GotoFinal commented 6 months ago

Describe the bug

If you have some package 1.2.3 and decide to release a version 1.2.3.1 without knowing that only x.y.z is correct, people will be able to install it, but it will break the project while also not be possible to remove/change version:

[INF] RemoveVPMPackage failed [ERR] Failed to handle HTTP request: Invalid version string: 1.2.3.1 [INF] Failed to check for package changes: 500

To Reproduce

  1. Create some package with valid version like 1.2.3
  2. Change the version to 1.2.3.1
  3. Try updating to that version with VCC - it will work fine
  4. Try opening the project and/or downgrading the version or removing the dependency

Expected behavior

I should not be able to install such version if its not valid, but if I somehow end up with invalid one, I should be able to remove it.

Screenshots

No response

Related Product

VCC (VRChat Creator Companion)

Product Version

2.2.3

OS

Windows 11

Additional context

No response