-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove conflict definition #53
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
============================================
+ Coverage 94.09% 94.13% +0.04%
- Complexity 987 990 +3
============================================
Files 13 14 +1
Lines 2423 2559 +136
============================================
+ Hits 2280 2409 +129
- Misses 143 150 +7 ☔ View full report in Codecov by Sentry. |
@giggsey Not sure why the PHPStan workflow is failing during checkout. You might want to rerun the job manually. |
I think you should remove the following lines from the SAST workflow. It makes PRs from forks fail. libphonenumber-for-php-lite/.github/workflows/sast.yml Lines 19 to 20 in feef98f
|
Can you remove that uses section? I don't have permission to push to your branch |
Head branch was pushed to by a user without write access
done, but i'm unsure which workflow will be run. I would assume that the original repo's workflow will be run to avoid security issues. |
Thanks, that's fine. If it fails again, I'll force merge. |
@giggsey Sorry to revisit this. Last night I was thinking it might be better to set the conflict configuration to the following:
It's really a brain dump. I'd advise to test this behavior locally first. |
Any giggsey/libphonenumber-for-php version above 8.13.35 will replace giggsey/libphonenumber-for-php-lite. But older versions won't, so we need to implicitly conflict with them. See #53
I've 'successfully' installed this together, which proves your problem: {
"require": {
"giggsey/libphonenumber-for-php-lite": "dev-main as 8.13.35",
"giggsey/libphonenumber-for-php": "^8.13"
}
} With #54, dev-conflict for lite gives a composer error. Replacing the composer.json with: {
"require": {
"giggsey/libphonenumber-for-php-lite": "dev-conflict as 8.13.35",
"giggsey/libphonenumber-for-php": "dev-master as 8.13.35"
}
} still errors:
I'll try to read the composer docs over the next few days. |
I did some more investigation. It appears that Sorry for the misdirecting OP/PR. I've learned about composer internals myself now!
|
Just so i'm clear, we need to add the conflict back (#54) to lite? The replace in main is needed, and remains. If so, it's probably safer to keep lite's conflict as * |
Correct. Sorry for the hassle |
Thanks @Propaganistas - I'll change it to * in case of version number weirdness |
See giggsey/libphonenumber-for-php#625