Questions tagged [semantic-versioning]

Semantic Versioning is a community-driven version-numbering standard. Use this tag to indicate the software versioning concepts defined at http://semver.org.

Semantic Versioning is a conceptual software scheme which defines concepts of API compatibility and a specific, strict set of versioning rules intended to avoid dependency hell.

A number of software packages have made a commitment to apply the concepts of Semantic Versioning, or help to enforce its rules. For example: , and other package managers often help manage software dependencies using these rules.

Not all software versioning applies these semantics, which can lead to confusion. Semantic Versioning 2.0.0, the current specification, was originally written by Tom Preston-Werner, and is a community based effort hosted at https://github.com/semver/semver.

664 questions
0
votes
1 answer

Nuget version restrictions

I'm using Nuget 4.3.0.4406 to pack an assembly with version 5.2.29.181212.8244-RC but I get 2018-12-12T08:44:02.8053309Z ##[error]The nuget command failed with exit code(1) and error('5.2.29.181212.8244-RC' is not a valid version string.…
grmbl
  • 2,514
  • 4
  • 29
  • 54
0
votes
1 answer

Octopus Deploy check packge before promoting to Production

In development we version our builds like so: 0.0.0-{branch-name}+{short-git-hash} Something like 0.0.0-add-new-button+8ad89d For production releases our versions are normal SemVer: 1.2.3 I am trying to add a check in octo so that we can't…
joepour
  • 6,831
  • 10
  • 32
  • 29
0
votes
1 answer

validate semver version in package.json dependency value

I am getting problems like this when validating that the right version of a dependency is installed: package with name csvtojson is not satisfied. Installed version: 0.4.5 desired version:…
user5047085
0
votes
1 answer

Concourse: Use a semver resource to control which artifact to use from s3

My pipeline contains a task with the following pre-requisites - get: version trigger: true params: { bump: patch } passed: ["trigger_job [CI]"] - get: sdk-package passed: ["package_generation_job"] params: version: {path:…
stevec
  • 546
  • 1
  • 6
  • 16
0
votes
1 answer

Use semver package to determine if version matches

Say I have this in the .npm cache: lodash/ 1.2.4/ 1.3.3/ 2.11.2/ What I want to do is read the directories in the lodash folder and see if any of the versions are acceptable. Say I am looking for this…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

More portable or additional coverage for semver regex than this one?

The following regex works fine for PCRE, Java and .NET but does no work with Python or Golang. Any clues how to cover those last two would be very much appreciated. Preferable to have one regex to fit them all, but I suspect that two or more will be…
jwdonahue
  • 6,199
  • 2
  • 21
  • 43
0
votes
1 answer

What is the best way to update maven build number in Concourse pipeline?

I have a spring boot app which is built to PCF with Concourse. I want to be able bump the pom build version number during the build. I'd like to use a version file and the semver resource, however once I have the version number how can I pass the…
cdugga
  • 3,849
  • 17
  • 81
  • 127
0
votes
1 answer

Semantic Versioning when an update breaks backwards compatibilty with a previous minor version

If I fork a project on github with version v1.0.0 and then add some new functionality. It still remains backwards compatible so if I understand semantic versioning correctly I change the version to v1.1.0. If I now decide I want to change the…
0
votes
2 answers

Is semantic versioning strictly followed by libraries published at Maven Central?

The recommended version strategy in Maven Central Repository is Semantic Versioning 2.0.0, which is pretty strict about how a major version should be affected on any incompatible change (using MUST from RFC 2119 regarding this requirement). Let's…
Pavel
  • 4,912
  • 7
  • 49
  • 69
0
votes
0 answers

Publish Git Comments / Releases to Site (Continuous Deployment)

Sorry if title isn't correct. I'm trying to figure out what to search for on this matter. I'm looking for the easiest way to automatically have my semantic versioning and commits visible on my site when commits / releases happen. I recently started…
gfrobenius
  • 3,987
  • 8
  • 34
  • 66
0
votes
1 answer

npm install with ^ dependency instead of exact match

I am developing an npm package and realized that it is added with the exact version to the package.json when adding it with npm i -S packagename How can I tell it to use ^0.0.1 instead of 0.0.1 ? Can I define this as the default from within the…
Chris
  • 13,100
  • 23
  • 79
  • 162
0
votes
1 answer

Bash: Obtain latest semver from a given range - whilst reducing verbose conditional logic

Background I am developing a bash script to find the latest version within a given range from an array of semver versions. The code/gist below (example.sh) includes a function named log_latest_version_in_range and it accepts an single argument. The…
RobC
  • 22,977
  • 20
  • 73
  • 80
0
votes
1 answer

How to manage version from git-describe when implementing a new feature?

I am working on this development: * a3bde21 (feature) * bdf3b22 * 5a4d8e9 (master, tag: v0.1.0) * 47312aa * abd2111 So git describe will give me v0.1.0. The problem is that I am implementing a feature which is not anymore the v0.1.0. If I build my…
nowox
  • 25,978
  • 39
  • 143
  • 293
0
votes
1 answer

How to get version (major.minor.patch) numbers from source code on TFS CI tasks

I am trying to create a nuget package in ci process. I want to version packages accoring to Semantic versioning. Basically, they will have major.minor.patch-ci-date. for this puspose, I use nuget packager task on TFS. I can configure version on…
0
votes
1 answer

Gitflow tagging of develop branch?

It is necessary for our develop branch to be tagged because our build process takes the tag name as the semver build version, e.g. v3.5.1. Develop branch can be built any time and deployed to staging server automatically. However, gitflow model…
Ska
  • 6,658
  • 14
  • 53
  • 74