revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

bug: Version format differns when adding bundle from local storage

Open oSumAtrIX opened this issue 8 months ago • 8 comments

Bug description

No "v" present here, for example:

Image

Acknowledgements

  • [x] I have checked all open and closed bug reports and this is not a duplicate.
  • [x] I have chosen an appropriate title.
  • [x] All requested information has been provided properly.
  • [x] The bug is only related to ReVanced Manager.

oSumAtrIX avatar Apr 30 '25 08:04 oSumAtrIX

Are you sure this is explicitly local storage? I think it may be that the ReVancedExperiments patch bundle actually has that bundle version without the v, I don't seem to find ReVanced Manager to be doing any kind of alteration to the version string

Ushie avatar Apr 30 '25 10:04 Ushie

Image

Image

Image

Image

Ushie avatar Apr 30 '25 10:04 Ushie

Here are the manifest:

Image Image

It is because the API returns a v:

Image

oSumAtrIX avatar Apr 30 '25 10:04 oSumAtrIX

How should ReVanced Manager fix this? Should it read the version value from the downloaded file and stop reading the value from the API?

Ushie avatar Apr 30 '25 10:04 Ushie

Yes, patches info should be read from the patches file itself.

oSumAtrIX avatar Apr 30 '25 10:04 oSumAtrIX

Why does API return a different format?

Axelen123 avatar May 25 '25 19:05 Axelen123

API takes info from tags. Perhaps it should read the patches files manifest?

But in this case calling https://api.revanced.app/v4/patches needs the API to download the patches, and read the manifest that way (once)

oSumAtrIX avatar May 30 '25 12:05 oSumAtrIX

However, the API should be used by manager in the update screen for example. It does not need to be used in the patches list screen. There the manifest should be read

oSumAtrIX avatar May 30 '25 12:05 oSumAtrIX

API takes info from tags. Perhaps it should read the patches files manifest?

But in this case calling https://api.revanced.app/v4/patches needs the API to download the patches, and read the manifest that way (once)

A simpler solution would be to make semantic-release not add v to the version: https://semantic-release.gitbook.io/semantic-release/usage/configuration#tagformat

I don't see any benefit to adding the v and removing it will make the version strings match exactly, which is good, since it means the API and release infrastructure will no longer be "lying" about the version.

Axelen123 avatar Jun 10 '25 14:06 Axelen123

This adds inconsistency with other repos or requires changing it for all other repos introducing a non obvious change for a reason unrelated to them. Besides, regardless of that manager should read info for the patches from the patches manifest. That's what its for.

oSumAtrIX avatar Jun 10 '25 15:06 oSumAtrIX

Manager now displays the version from the manifest.

Axelen123 avatar Jul 04 '25 16:07 Axelen123