-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.2] Add tightenco/collect to replace section #14118
Conversation
Since tightenco/collect is just standalone illuminate collections from support, this replace should be added.
Sorry, we can't add unrelated packages to our composer file like that. |
@GrahamCampbell Are you sure about that? |
What I was really meaning is, I doubt we want to. Leaving for Taylor to decide. :) |
@GrahamCampbell Thanks Graham! :) |
how is this unrelated? |
If you want to see reasons for and against this PR, take a look at this thread. tighten/collect#4 |
In general third parties should not distribute laravel code like that. Laravel itself should publish this if it wanted it, surely? |
@GrahamCampbell So, with his blessing, Tighten took on the task of splitting it out for folks who need it separately. |
I absolutely agree with "Laravel should publish it", however since collect exists I thought this would be the right way to go. |
I agree that this is probably OK in the special case of tighten/collect which is an exact copy of collections including the namespace. |
Thanks @taylorotwell, @eFrane, and @GrahamCampbell 👍 And for future reference: if this sets a problematic precedent at any point in the future, please feel free to drop this line for the same of Laravel purity; I want this to be a service, not a burden. |
Note that this is still not going to work. |
You need to make the support subsplit replace it too... |
@@ -68,7 +68,8 @@ | |||
"illuminate/support": "self.version", | |||
"illuminate/translation": "self.version", | |||
"illuminate/validation": "self.version", | |||
"illuminate/view": "self.version" | |||
"illuminate/view": "self.version", | |||
"tightenco/collect": "self.version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it just be "tightenco/collect": "*"
. Since any version of tightenco/collect
should be ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, tightenco/collect
follows the version of illuminate/support
, thus self.version
is the correct constraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If let say laravel/framework make a release today, and tightenco/collect are only available to run the subsplit/publish command few days/weeks (not saying it would be common, but possible). There wouldn't be any exact version available.
In this case, wouldn't both the package be installed? Or composer smart enough to validate "laravel/framework":"v5.3.0"
with "tightenco/collect":"5.3.x-dev"
?
@GrahamCampbell This may be a dumb question, but where exactly is the "authoritative" |
The one in laravel/framework please. :) |
Then I don't get what there is to be done for
|
https://github.com/laravel/framework/blob/5.2/src/Illuminate/Support/composer.json needs updating please. |
I'm so blind. Will do. |
* Fix illuminate/support composer.json according to #14118 * syntax fixed
Since tightenco/collect is just standalone illuminate collections from support, this replace should be added.