yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Unable to set a custom non-semver version number

Open binarykitchen opened this issue 5 years ago • 1 comments

Hello folks

Tried here to set version in package.json in a non-semver format (our company has a very different versioning).

All my attempts have failed so far and yarn always complains that it must be in x.y.z format. Even the hidden config looseSemver doesn't have an impact.

Here an example

$ yarn version --no-git-tag-version --new-version 'I am a non-semver version number'
yarn version v1.22.4
error Invalid version supplied.
info Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.

Would be great to allow this. Versioning format cannot be always semver, there are companies out there using a totally different verisoning.

binarykitchen avatar Feb 03 '21 01:02 binarykitchen

I have the same problem, I need to set a different versioning

netogildo avatar Jul 21 '21 01:07 netogildo