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

catch situations where PKGMAN_Exec returns fail #123

Closed
ThomasBreuer opened this issue Jun 18, 2024 · 6 comments
Closed

catch situations where PKGMAN_Exec returns fail #123

ThomasBreuer opened this issue Jun 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@ThomasBreuer
Copy link
Contributor

InstallPackageFromGit( url ) calls PKGMAN_Exec, and expects that the result is a record.
Thus GAP runs into an error if PKGMAN_Exec returns fail.

@mtorpey mtorpey added the bug Something isn't working label Jun 18, 2024
@mtorpey
Copy link
Collaborator

mtorpey commented Jun 18, 2024

Thanks for this! I guess this will be an easy fix.

@mtorpey
Copy link
Collaborator

mtorpey commented Aug 30, 2024

Actually when looking into this, I'm having trouble reproducing the issue. Do you know of a common time when PKGMAN_Exec returns fail?

@fingolfin
Copy link
Member

Does it handle case were git is not present on the user's machine? What happens if git is given an invalid URL (i.e. serves a 404; or serves an "access denied") ?

@ThomasBreuer
Copy link
Contributor Author

The problem was indeed with git, but it was more subtle.
It disappears if one uses PathSystemProgram instead of Filename and DirectoriesSystemPrograms, see issue gap-system/gap/issues/5752 and the solution gap-system/gap/pull/5754.

@fingolfin
Copy link
Member

So what shall we do then? Change PKGMAN_Exec to use PathSystemProgram if available (and otherwise fall back to existing code) ? Or should it also be changed to return a boolean? Or what?

@ThomasBreuer
Copy link
Contributor Author

Actually the problem was fixed with #126, thus the issue can be closed.

As soon as PathSystemProgram becomes available in GAP, the code duplication can be removed, but that is another topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants