Replies: 4 comments 2 replies
-
|
Note that |
Beta Was this translation helpful? Give feedback.
-
|
I voted "opt-in, then opt-out" for SemVer's sake, since this could potentially break a lot of builds, like many others it seems. This is a great functionality though! I imagine a lot of composer.json being fixed because of that! 😁 |
Beta Was this translation helpful? Give feedback.
-
|
I'm for opt-in but I think what you might be able to add by default is a run of composer validate that does not fail the build if it fails, it'd just output the warnings and carry on. So it'd always run but the flag would be fail: bool (default false). If you find a way to surface the errors to everyone without breaking their build that'd have the most impact i think |
Beta Was this translation helpful? Give feedback.
-
|
Voted " Opt-in for 3.x, switching to always on in 4.x, with no way to opt-out ". If it's the wrong choice, you can always add an opt-out feature in 4.1. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In #265, @TimWolla suggested running
composer validateas part of the installation. I think this is a great idea, but it comes with a decision to make, especially since this could be viewed as a breaking change. What do you think?In a nutshell, with this feature,
composer validatewould run before installation to validatecomposer.json, which, among other things, ensures thecomposer.lockfile (if present) is up-to-date with the latest changes tocomposer.json. If it fails, this action would immediately stop, reporting a failure state.If we decide it should be an opt-in or opt-out feature, I'll add a
validateproperty to the action like this:19 votes ·
Beta Was this translation helpful? Give feedback.
All reactions