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 the availability check in Packages.install #1039

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

ThomasBreuer
Copy link
Member

This is an alternative to #1037.

Here we try to keep the check whether a not yet loaded GAP package is already installed, i.e., Packages.load would return true.
The previous code was wrong in the sense that it did not consider the availability of the needed packages. Now we call the right GAP function, which tests also the needed packages.

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 74.39%. Comparing base (d53926d) to head (50f7f45).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/packages.jl 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1039      +/-   ##
==========================================
+ Coverage   74.34%   74.39%   +0.04%     
==========================================
  Files          55       55              
  Lines        4530     4527       -3     
==========================================
  Hits         3368     3368              
+ Misses       1162     1159       -3     
Files with missing lines Coverage Δ
src/packages.jl 72.89% <0.00%> (+1.98%) ⬆️

src/packages.jl Outdated
Comment on lines 275 to 276
for inforec in getproperty(info, spec)
if version == string(getproperty(inforec, :Version))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two lines are no longer needed due to the changes below

Copy link
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to solve the problem with recog in oscar-system/Oscar.jl#3688 as well and seems to be a better solution than #1037

@ThomasBreuer ThomasBreuer merged commit 562986e into oscar-system:master Sep 13, 2024
21 checks passed
@ThomasBreuer ThomasBreuer deleted the TB_availability_test branch September 13, 2024 13:22
@fingolfin
Copy link
Member

Thank you for the fix!

A very minor point, but: next time I would recommend to "squash merge" PRs with several "fixup" commits. To avoid a bunch of extra commits on master:

* 562986ee (2024-09-13 13:33:12 +0200) remove now unnecessary code lines <ThomasBreuer>
* 2d7d2b02 (2024-09-12 23:23:19 +0200) fix the availability check in `Packages.install` <ThomasBreuer>
* 0938c8ed (2024-09-12 21:47:25 +0200) fix the test ... <ThomasBreuer>
* 85ff8d11 (2024-09-12 16:37:38 +0200) add a test <ThomasBreuer>
* f78459b9 (2024-09-12 15:43:22 +0200) change the `show` method for GAP objects <ThomasBreuer>

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.

3 participants