Closed (fixed)
Project:
Social Auth
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2019 at 22:06 UTC
Updated:
18 Mar 2019 at 18:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shaundychkoComment #3
shaundychkoComment #4
shaundychkoI'm not sure what to do here, since https://www.drupal.org/docs/8/creating-custom-modules/let-drupal-8-know-... says to not include the
versionkey. In any case, the patch is necessary to enable the dev version ofsocial_auth_googledue to its version constraint forsocial_auth.Comment #5
gvsoI'm hesitant about adding the version key. This might be a different alternative to solve this issue #3035459: Dependencies cause error while Social Post version has no stable release
Comment #6
chop commentedThis is a chicken and egg problem. The Drupal.org packaging script injects your module version key into an info.yml file. However this only happens for a stable package versions.
Hopefully this documentation will help the discussion.
Let Drupal 8 know about your module with an .info.yml file
Add a composer.json file
Some notes of my own:
Steps for manually downloading modules for install are still officially documented, however they aren't recommended for non-stable / or non-recommended versions.
Drush 9 no-longer supports manually downloading and installing modules without composer.json
Drush 9 is required for use with currently supported Drupal 8 versions. Drupal 8.5 is the oldest supported version today.
If we choose to manually add a version string into the info.yml we should have a process in place to remove it whenever a stable, recommended release version is tagged, so it isn't conflicting with the Drupal.org packaging script.
Comment #7
gvsoLet's fix the issue with Social Auth Google at #3030876: Dependencies cause error while Social Auth has no stable release
Comment #8
chop commentedIn the documentation page for Alpha releases here https://www.drupal.org/node/1068944
It says:
That page was updated only a few days ago. Can I also suggest just checking that the releases set-up for each of the modules.
The Drupal.org packaging script should create distributions for 8.x-2.x-dev that contain version information like this, but maybe they're not working for some reason.
You see above, it counts the number commits that the dev branch is ahead of the last recommended release and creates a version number as:
version: '8.x-2.0-beta2+5-dev'Worth just checking that this is working for all dependencies in this module pack.
Comment #9
chop commentedI looks like this module, Social Auth is working okay:
Last updated: 4 Feb 2019 at 05:48 AEDT
Last packaged version: 8.x-2.0-beta4+22-dev
https://www.drupal.org/project/social_auth/releases?api_version[]=7234
I also downloaded the module tarball and it had this:
So versions are being packed in properly for this module.
Comment #10
gvsoDoes this mean we don't need to make the changes in my last patch?
Comment #11
bramdriesenI think the changes in patch #7 are more in line with the Drupal standards if I'm not mistaken.
Comment #13
gvso