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
drush make --lock= (make-generate) strips core from version of core downloads. #1553
Comments
|
I think |
|
I've tracked this down to Here we're making an assumption that |
|
This is essentially a chicken and egg problem. We need to know the project type ('project_core' or 'project_distribution') before making the request that'll provide this info. Two obvious approaches present themselves: (1) Add a I'm leaning towards (2), since only a very local change is required. Since we have (at most) one core per makefile, the additional overhead here would be minimal. To do (1) properly, we'd probably have to figure out how to get make-generate to recognize that a site was built on a distribution. |
|
@jhedstrom & @weitzman I can bang out (2) in a half-hour. However (1) is probably the "right" way to fix this. Suggestions? |
|
@ergonlogic the approach in 2 sounds reasonable for the time being if it fixes the immediate problem. We can always do a follow-up if adding |
|
@ergonlogic the problem is at |
|
AFAICS lines 101-103 are unneccesary: |
|
Those lines strip the core version off of all projects, for readability. Otherwise all projects' versions will have the core prefix. That said, the simplest fix would probably be to skip projects of type 'core' here. |
|
While I still think a 'bare' version should be valid for distributions, I think that should probably be part of a more comprehensive addition of 'distribution' as a project type. As such, I went with the simplest solution that resolves this issue. Assuming tests pass, I'd like to back-port this to Drush 7.x and 6.x. Unless there are objections. |
|
Since tests passed, I'm going to back-port this trivial patch to 6.x and 7.x. |
|
Cherry-picked into 7.x. The '--lock' functionality doesn't exist in Drush 6.x. |
eric-eisenhart commentedAug 14, 2015
Using drush 7, with a makefile like this:
Running
drush make --no-build test.make --lock=test-lock.makeresults in an output file withprojects[panopoly][version] = "1.25".But attempting to build with that will result in a "Could not locate panopoly version 1.25" error.
Manually editing the generated lock makefile so that version is "7.x-1.25" fixes the problem.
If I put
projects[panopoly][version] = "7.x-1.25"in the original test.make makefile, it still sets version=1.25 in the output makefile.The text was updated successfully, but these errors were encountered: