-
Notifications
You must be signed in to change notification settings - Fork 106
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 Git default branch #602
base: master
Are you sure you want to change the base?
Conversation
Newer versions of Git set the default branch to 'main', which breaks the tests (as SensioLabsSecurityChecker uses master). The https://github.com/FriendsOfPHP/security-advisories repo still uses master, so we can't change anything within the actual service yet.
Wonderful MR, can you do the following thing @giggsey:
|
From memory, the test failure error is actually misleading. It would probably have been better if I changed the line from I believe that is because the version of Git used is out of date, and does not support the initial branch param. |
Possibly it would be better to download the repository as a zip, then just unpacking it? This way Repman does not have to rely on external programs |
Possibly, but the actual running of repman relies on Git working locally anyway, so I don't see the major harm in running Git here too. Updating the tests to the latest version of PHP 7.4 might resolve it anyway, it currently uses library/php:7.4.1 |
I think we can use new composer audit command. WDYT? |
Does it cache anything though? Wouldn't want to hit their API for every
package within repman. Possibly using their API directly might work better
and cache it similar to the git pull now
…On Sat, 10 Sept 2022, 13:23 Arkadiusz Kondas, ***@***.***> wrote:
I think we can use new composer audit command. WDYT?
—
Reply to this email directly, view it on GitHub
<#602 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKUQUDRTJVDPJ26V2HDGTV5R4VLANCNFSM54Y5BVCA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
that's why I'm asking, because from my point of view, we can leave what we have now |
My view is to leave it pulling from the repo for the time being. There are other areas of repman that could do with the attention that direct improve people's use of it, rather than refactoring a background task |
We should still need this merged as it indeed has issues on newer PHP docker images and with the default git of macos |
Newer versions of Git set the default branch to 'main', which breaks the tests (as SensioLabsSecurityChecker uses master).
The https://github.com/FriendsOfPHP/security-advisories repo still uses master, so we can't change anything within the actual service yet.