Reproduction
Steps to reproduce:
- Release a new version
Expected Behavior
Only valid semver should be used for the versions in https://github.com/angular/material2-docs-content/blob/8.2.x/package.json
Actual Behavior
We’re appending partial commit SHAs to the end of the versions, i.e. 8.2.0-c29c507, 8.2.1-a5d2ed8, and the latest 8.2.2-0462599.
However, 8.2.2-0462599 is not valid semver, so yarn won’t install it.
You can check using this validator: https://jubianchi.github.io/semver-check/#/8.2.2-0462599/8.2.2-0462599
The leading 0 is the issue. It doesn’t accept versions like 01.02.03, it has to be 1.2.3.
Checking with the 0 removed, says valid semver (https://jubianchi.github.io/semver-check/#/8.2.2-462599/8.2.2-462599).
The related commits:
What is seen when trying to build material.angular.io
$ yarn install
yarn install v1.17.3
[1/4] 🔍 Resolving packages...
error Can't add "@angular/material-examples": invalid package version "8.2.2-0462599".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Reproduction
Steps to reproduce:
Expected Behavior
Only valid semver should be used for the versions in https://github.com/angular/material2-docs-content/blob/8.2.x/package.json
Actual Behavior
We’re appending partial commit SHAs to the end of the versions, i.e.
8.2.0-c29c507,8.2.1-a5d2ed8, and the latest8.2.2-0462599.However,
8.2.2-0462599is not valid semver, so yarn won’t install it.You can check using this validator: https://jubianchi.github.io/semver-check/#/8.2.2-0462599/8.2.2-0462599
The leading
0is the issue. It doesn’t accept versions like01.02.03, it has to be1.2.3.Checking with the
0removed, says valid semver (https://jubianchi.github.io/semver-check/#/8.2.2-462599/8.2.2-462599).The related commits:
What is seen when trying to build material.angular.io