Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix version detection for backwards compatability #80

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

mundry
Copy link
Contributor

@mundry mundry commented Mar 31, 2023

Hey,

thanks for the quick response to #78.
There is still an issue around the missing ChangeLog file in development builds.

I've proposed some changes to handle version comparison in case there is no ChangeLog file.

If we are in a development build with a ChangeLog file, we read the latest release version from the ChangeLog file and compare it.
If we are in a development build without a ChangeLog file, then we can be sure that it's a version higher than is needed for the compatibility classes.
If it's a regular release build, the release version gets compared to determine whether compatibility classes are needed or not.

This has worked for me in the following three test scenarios:

  • Running release version 1.2.5
  • Running the latest release
  • Running the nightly build

@creecros
Copy link
Owner

creecros commented Mar 31, 2023

Interesting. Maybe I didn't test enough. I used the nightly build and could not get an error before or after the previous changes...

I'll take another look.

@mundry
Copy link
Contributor Author

mundry commented Apr 4, 2023

Have you had a chance to test this, yet?

@creecros
Copy link
Owner

creecros commented Apr 4, 2023

Not at all, sorry. I'll take care of it today.

@creecros creecros merged commit 6cc5967 into creecros:master Apr 4, 2023
@creecros
Copy link
Owner

creecros commented Apr 4, 2023

looks fine to me

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.

2 participants