Since .info.yml contain "version: VERSION", such VERSION will be replaced by corresponding Drupal core version number. Therefore if install with git checkout, Available Update page will report that coming with an unsupported version number.

Documentation for Drupal 7.x (https://www.drupal.org/node/542202#version):

version (Discouraged)
The version string will be added by drupal.org when a release is created and a tarball packaged. However, if your module is not being hosted on the drupal.org infrastructure, you can give your module whatever version string makes sense (eg. see Release naming conventions).

Documentation for Drupal 8.x (https://www.drupal.org/node/2000204#hello_world):

For modules hosted on drupal.org, the version number will be filled in by the packaging script, you should not specify it manually, but leave out the version line entirely.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hswong3i created an issue. See original summary.

hass’s picture

Status: Needs review » Closed (duplicate)
hswong3i’s picture

hswong3i’s picture

Status: Closed (duplicate) » Needs review

@hass: refer to #2697787: version in info yaml confuses update reports, shall we reconsider to apply this patch and solve the issue now by ourselves, rather than waiting for Drupal core team to update corresponding documentation pages?

hswong3i’s picture

Issue summary: View changes
hswong3i’s picture

Documentation for Drupal 8.x (https://www.drupal.org/node/2000204#hello_world):

For modules hosted on drupal.org, the version number will be filled in by the packaging script, you should not specify it manually, but leave out the version line entirely.

hswong3i’s picture

Issue summary: View changes
Berdir’s picture

Status: Needs review » Reviewed & tested by the community

  • hass committed 4a90f3f on 8.x-2.x authored by hswong3i
    Issue #2712793 by hswong3i: google_analytics.info.yml should not contain...
hass’s picture

Status: Reviewed & tested by the community » Fixed
hswong3i’s picture

@hass thanks for commit ;-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.