Skip to content

Version rework#19

Merged
hjbdev merged 3 commits intohjbdev:masterfrom
Lotti:hotfix/version-rework
Oct 21, 2024
Merged

Version rework#19
hjbdev merged 3 commits intohjbdev:masterfrom
Lotti:hotfix/version-rework

Conversation

@Lotti
Copy link
Contributor

@Lotti Lotti commented Oct 7, 2024

It all started with "FindLatestXXX" functions sorting in alphabetical order instead of numeric... and ended with a major rework!

I reworked how the struct Version is used in the program. Then I could go deeper and remove some extra loops that were unnecessary.

Now there is no need to sort versions found on disk and the FindLatestXXX functions works as expected.

I've also removed the test that was testing the version sorting.

Thank you for taking time to review it. I'm still very new to Go, I'll try to write some automated tests next time.

changed every reference and use of Version struct, moved to xPrintf to concatenate numbers with string, undefined minor and patch value is associated with -1.
removed version sort function because wasn't used anymore with its test
look for a given version with just one loop instead of three
@hjbdev
Copy link
Owner

hjbdev commented Oct 18, 2024

Hey! Thanks for this, I'm a bit flat out right now but I haven't forgotten about it. I'll review when I can

@HerrSammyDE
Copy link

I apologize in advance for this reply, but the issues in the repository are disabled, @hjbdev

Would it be possible to add a feature to enable and install extensions directly?

https://github.com/Rene-Roscher/pvm?tab=readme-ov-file#configuration

@hjbdev hjbdev merged commit ba147be into hjbdev:master Oct 21, 2024
@hjbdev
Copy link
Owner

hjbdev commented Oct 21, 2024

Thanks for this @Lotti!

@HerrSammyDE it's a good idea, if I find some time I'll look into it. I've disabled issues to try and push more towards contributions. I've enabled discussions now

@Lotti Lotti deleted the hotfix/version-rework branch December 19, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants