Azure / Azure/azure-powershell
Release of Az.Accounts 2.1.0 violates Major Version Semantic Versioning rules for Az 4.*, Az 3.*
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
## Description
Az 5.0.0 major version release includes the new major version release of Az.Accounts 2.1.0 with [breaking changes](https://github.com/Azure/azure-powershell/releases/tag/v5.0.0-October2020).
Az [4.8.0](https://www.powershellgallery.com/packages/Az/4.8.0) and [3.8.0](https://www.powershellgallery.com/packages/Az/3.8.0) will absorb the major version breaking changes of Az.Accounts 2.1.0 as those modules do not pin to the 1.x major version of Az.Accounts. Package Details indicate >= for Az.Accounts.
The consequence is that
* Installing 3.8.0 or 4.8.0 of Az is now _breaking_ as the latest version of Az.Accounts (2.*) is now installed instead of 1.x.
* Pinning to 3.8.0 or 4.8.0 of Az will still invite breakages in existing automation
This violates SemVer versioning rules for [minor versions](https://semver.org/).
## Steps to reproduce
```powershell
Install-Module Az -RequiredVersion 4.8.0 -Force -Verbose -Repository PSGallery
```
```powershell
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.1.0'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.1.0'.
VERBOSE: Completed downloading 'Az.Accounts'.
```
Contributor guide
Assessment
This issue has not been assessed yet.