Skip to content

prefer returning the loaded version from pkgversion#61136

Merged
KristofferC merged 3 commits intomasterfrom
kc/pkgversion_sysimage
Mar 5, 2026
Merged

prefer returning the loaded version from pkgversion#61136
KristofferC merged 3 commits intomasterfrom
kc/pkgversion_sysimage

Conversation

@KristofferC
Copy link
Member

If we have already loaded the package we should return the loaded version (not what would be returned if we had not loaded the package and would load it now). As a side effect, this should allow pkgversion to work for packages that have been included in a custom sysimage.

@ararslan
Copy link
Member

Could be worth a NEWS entry and perhaps a compatibility note in the docstring given that the result of an identical function call could differ across versions?

@IanButterworth
Copy link
Member

This is how it was intended to work #45607

Evidently regression tests are needed.

@IanButterworth IanButterworth added the needs tests Unit tests are required for this change label Feb 25, 2026
@KristofferC
Copy link
Member Author

This is how it was intended to work

Okay, because previously it never used the pkgorigins at all to retrieve the version, right?

@IanButterworth
Copy link
Member

It did in the original PR

@KristofferC
Copy link
Member Author

I broke it?? #46738. Wow.

@KristofferC
Copy link
Member Author

added a test

@KristofferC KristofferC added backport 1.10 Change should be backported to the 1.10 release backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 and removed needs tests Unit tests are required for this change labels Feb 25, 2026
@KristofferC KristofferC force-pushed the kc/pkgversion_sysimage branch from ebcb497 to 05f14f2 Compare February 25, 2026 15:45
@KristofferC KristofferC mentioned this pull request Mar 3, 2026
56 tasks
@KristofferC KristofferC merged commit 3ff8e7b into master Mar 5, 2026
5 of 8 checks passed
@KristofferC KristofferC deleted the kc/pkgversion_sysimage branch March 5, 2026 11:43
KristofferC added a commit that referenced this pull request Mar 5, 2026
KristofferC added a commit that referenced this pull request Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.10 Change should be backported to the 1.10 release backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants