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.
579
questions
0
votes
1
answer
31
views
how increment works for a variable in Azure pipeline
let say i have defined few variables in my yaml:
major: 0
minor: 0
patch: $[counter(variables['minor'], 0)] #this will reset when we bump minor
myVersion: '$(major).$(minor).$(patch)-$(Build.BuildId)'
...
0
votes
0
answers
19
views
git flow tags - what's the sequence
From the specification https://semver.org/, the tag sequence is (I did adjust for my question)
1.0.0 < 1.0.1-alpha < 1.0.1-alpha.1 < 1.0.1-alpha.beta < 1.0.1-beta < 1.0.1-beta.2 < 1....
0
votes
1
answer
37
views
Fetch version number in Nuget package step in Azure DevOps from csproj
Trying to set up a build pipeline where nugets built from pull-requests are suffixed with '-unstable'. However, I can't seem to get the version of the class-library project that is being built defined ...
0
votes
0
answers
10
views
What's the meaning of "[" and ")" in semver (Semantic versioning) which is used in SCA Analysis [duplicate]
I already spent a week with semver, and got the basics, i'm not able to understand what's the meaning of "[" and ")" in semver. I'm using https://www.npmjs.com/package/semver to ...
0
votes
1
answer
20
views
How to upgrade version number for previous release with semantic-release
Currently, I have a package with currnet version 2.0.1, i want to release fix for previous version i.e v1.0.1, how to achieve this in github, should i checkout to v1.0.1 branch and then create fix and ...
-1
votes
0
answers
14
views
Python - How to use regex to match paths that have SemVer string [duplicate]
I have some paths that I wish to check if it matches with a given path. This given path includes a SemVer string inside it.
I am using the regex provided by the SemVer official website to match for ...
0
votes
1
answer
32
views
Different packageRules for release and prelease versions
Is there a way to configure renovate with packageRules, so that I get a MR with automerge disables for pre-release versions, like v1.0.0-alpha.1 and MR with automerge enabled for patch versions, liken ...
4
votes
0
answers
38
views
Is there any limit in composer for the major version number in a package?
I have some PHP projects that use a private library that is not published in packagist. This library dependency is managed using a vcs repository declared in composer.json file.
I have been using ...
0
votes
0
answers
43
views
"Cannot find module 'semver'" error when npm commands are run on Linux server
I recently updated the Node.js version of my Linux server from version 10 to version 18. But since I have updated it, I get this error message when I run some npm commands such as npm update:
Error: ...
0
votes
0
answers
42
views
Using OpenAPI Spec for Semantic Versioning Releases
I am deploying a FastAPI application to docker and I'm pondering how to best manage the Semantic Versioning.
Since it is just an API, I would think that MAJOR.MINOR.PATCH could be determined by ...
0
votes
2
answers
48
views
regex for semver
What is a correct regex for matching semantic versioning?
It should not match for instance
01.1.1
9.8.7-whatever+meta+meta
1.2.3.DEV
1.2.3-0123
1.0.0-alpha_beta
1.2-SNAPSHOT
1.2.31.2.3----RC-SNAPSHOT....
0
votes
0
answers
14
views
When do you change the version number with semantive versioning?
What is the right way to version my API server using semantic versioning and when.
At the moment every build we are generating the version number by analyzing all of the commits on the beanch and ...
0
votes
1
answer
45
views
Handling hotfix in gitversion
I'm trying to understand how GitVersion works.
Here there is a snippet for 'gitversion /showconfig'
branches:
develop:
mode: ContinuousDeployment
main:
mode: ContinuousDelivery
hotfix:
...
2
votes
1
answer
33
views
When to drop support for deprecations in git-flow / semantic versioning
We work by the git-flow workflow and we stick to semantic versioning. Today we discussed how to handle deprecations. Two questions have arisen:
A. Semver: Is it ok to gracefully deprecate a feature in ...
0
votes
0
answers
14
views
Does an upstream breaking change require a major version change in semantic versioning?
In a semantic versioning scheme, what is the correct way to version your application if you need to introduce changes to due a breaking change from an upstream library?
For example, suppose we have an ...
0
votes
0
answers
17
views
From node-semver documentation, what is meaning of symbol "-0" after version
~1.2.3 := >=1.2.3 <1.(2+1).0 := >=1.2.3 <1.3.0-0
(highlighted)
In above example, what is the meaning of symbol -0 after version(1.3.0-0)?
see: https://github.com/npm/node-semver#versions
0
votes
1
answer
170
views
Dotnet Semantic Versioning and Release with Github Actions
I have a dotnet project and am trying to build a CI/CD pipeline that does the following using Github Actions:
Builds the project on a PR or master change.
Tests the project on a PR or master change.
...
0
votes
0
answers
165
views
How to implement semantic versioning in GitLab pipeline step by step
I’m trying to implement a semantic version in our GitLab pipeline. I just don’t know where to start and how to start. I am stuck at the moment and have gone through its website https://semver.org, it ...
1
vote
0
answers
77
views
How to get gitVersion to increment version to 1.0.0?
I've been trying to use gitVersion to increment a project to version 1.0.0 after some time of incrementing minor and patch versions.
When using +semver: major the minor version is incremented. for ...
0
votes
0
answers
64
views
GitVersion tool fails over develop branch does not exist
0
we want to integrate GitVersion in our build pipeline for semantic versioning.
we are seeing the following error, oh a repo which doesn't have develop branch:
ERROR [06/07/22 16:04:53:53] An ...
0
votes
0
answers
39
views
Semantic Versioning on multiple services in the same Github repository using GH Actions
Our team uses a mono-repo, with several microservices, and some common packages between them.
I am tasked with adding CI/CD automation, and traditionally I rely in Git tags for the sem-ver and utilize ...
0
votes
1
answer
300
views
Why doesn't PNPM install the latest version of nested dependencies
I have a dependency antd@4.20.6 in my project, it depends on rc-trigger. The version is defined as follows
"rc-trigger": "^5.2.10",
The latest version of rc-trigger is already &...
0
votes
1
answer
193
views
Why did npm update axios fail to update but npm uninstall then install can?
I used "axios": "^0.19.2", running npm i gave the warning "npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1." so I run npm update -S ...
0
votes
0
answers
150
views
Publish NPM library developed with NX monorepo
I have built library with NX monorepo I would like to publish the library to an internal NPM artifactory.
I don't want to install @jscutlery/semver to do that.
So the question is: Is there a way to do ...
3
votes
2
answers
681
views
Error: Compiler version ^0.8.0 does not satisfy the r semver requirement
I am new to solidity and I am running code on Remix.
It doesn't matter what version of compiler I specify, I keep on getting the same error.
Can someone help me out? What does "Compiler version ^...
1
vote
2
answers
194
views
How to make git describe use semver compatible tags only
I want my git describe invocation to use only refs
that conform to semantic versioning.
To keep it simple, for now, I do not care about other options
(like annotated tags only, branches, candidates, .....
0
votes
0
answers
183
views
ImportError: cannot import name 'VersionInfo'
I am using LaunchDarkly in my repository for flag-related features. Until recently everything was working fine when I started encountering this error while deploying my service:
ImportError: cannot ...
1
vote
1
answer
359
views
Gitlab-ci lost environment variables
I'm developing a pipeline on GitLab-ci, in the first job I use gittools/gitversion the obtain the semantic version of my software.
Here a small piece of code of /gitversion-ci-cd-plugin-extension....
0
votes
0
answers
71
views
How can I make a git hook to update the npm patch version on every commit or merge to master?
TLDR version of my question:
What I want is that doing work and committing things to feature branches (anything non-master) doesn't touch the version number, but committing or merging into master does....
0
votes
1
answer
66
views
Is a small breaking change enough to do a Major Version Upgrade while using SemVer?
I am new to the concept of SemVer. It's seems like very promising idea to implement in my current project.
According to the SemVer concept, if a project is name project-a.b.c then, a is Major update(...
0
votes
0
answers
79
views
How to sort semver in postgresql database?
I have a problem with sorting semversions using PostrgreSQL query.
I found topic like this:
https://dba.stackexchange.com/questions/74283/how-to-order-by-typical-software-release-versions-like-x-y-z
...
0
votes
0
answers
26
views
Semantic software versioning and application design change
I have a concern, I do not know which position is the one that increases in the version number of an application when you make changes in the design, whether it is a color change, a menu change or the ...
1
vote
2
answers
586
views
How to implement semantic versioning of Docker images in GitHub Actions workflow?
I would like to achieve the following CI pipeline with GitHub Actions workflow.
Pull Request is merged -> GitHub action is being triggered -> docker image is being built with semantic version ...
0
votes
0
answers
22
views
why ^ resolved unexpectedly?
according to the following rule,
^1.2.3 is >=1.2.3 <2.0.0
^0.2.3 is >=0.2.3 <0.3.0 (0.x.x is special)
^0.0.1 is =0.0.1 (0.0.x is special)
^1.2 is >=1.2.0 <2.0.0 (like ...
0
votes
0
answers
96
views
NPM semver range dependency resolution
I have the following question with respect to how npm pins dependency versions on npm install -
Considering my registry has a state for a package p-
dist-tags:
feature: 2.0.1 gamma: 2.0.1 latest: 1.0....
4
votes
1
answer
285
views
NPM Install pre-release versions for peer dependency
We have a mono-repository using lerna. On every pull request, we would like to create a pre-release version and publish it.
Demo Project for better understanding => react-lerna-demo
Package ...
0
votes
1
answer
115
views
How to increment the version of package using semantic-versioning, if several bugfixes and a new backward compatible feature have been added?
The semantic versioning system states that a backwards compatible bugfix means that you increment the patch version number (z in x.y.z). It also states that a backwards compatible feature addition ...
0
votes
0
answers
38
views
application versioning for asp.net core
I need to implement a version number for my asp.net 6 web-api application to show in our front view . I have looked in to the internet and found assembly versioning but some also referred me to avoid ...
0
votes
0
answers
33
views
versioning management and implementation in asp.net 6 application
I am working on asp.net web-api .NET 6 application . I want to send a version of the software to the front guy to show this version in the first login menu .
what would be the best approach of doing ...
1
vote
1
answer
134
views
Why Android Studio fails to apply plugin 'com.cinnober.gradle.semver-git'?
Could some sharp eye find what has been bugging me for the last week?
I cloned this repo but build fails with this exception:
FAILURE: Build failed with an exception.
Where: Script "C:\Users\...
0
votes
1
answer
158
views
Development versions management in private pypi repository
We are working on a product based on micro services and we are encountering some difficulties in the management of development versions of self-developed python packages shared between the components.
...
2
votes
2
answers
173
views
Updating Semantic Version between multiple developers
I've been thinking about semantic versioning recently and thought of a hypothetical situation that I can't quite seem to reconcile.
My understanding of the Semantic Versioning Scheme is as follows:
A ...
3
votes
0
answers
340
views
lerna conventional versioning with github actions
I've setup the github actions to run on PRs against development and main. Then in the workflow I have a task as follow:
if [ ${{ github.base_ref }} = development ]; then
npx lerna version --...
2
votes
0
answers
263
views
package.json returns ERROR: Invalid version if use custom version
ERROR: Invalid version: "1.2.1.3.2022"
error Command failed with exit code 1.
Is there a way to disable check for semantic versioning?
Changing version format to X.Y.Z is not an option ...
0
votes
1
answer
81
views
How does Sentry's semantic versioning work?
I’ve just done a new release to our customer and manually uploaded the version with:
sentry-cli releases new -p myproject 0.0.53
sentry-cli releases --org mycompany deploys 0.0.53 new -e beta
0.0.53 ...
0
votes
1
answer
670
views
semantic-release does not update package.json of my Angular library
I have this Angular library uploaded to a package registry that I created on Gitlab. I've already been able to upload my library successfully to this registry using the CI. I now want to implement ...
1
vote
1
answer
251
views
Semver minor and patch digit update logic
I'm writing a script that bumps up the package version based on the difference in commits between the master and current branch.
I'm using conventional commits to decide which number to update.
Let's ...
1
vote
2
answers
547
views
Bump Python package version upon main branch merge
My Problem
I am developing a Python package consumed by several internal consumers in my company using their CI/CD pipeline. Therefore, it's important for them to know what is the latest version of ...
0
votes
2
answers
33
views
How to validate version to accept 4.4+ but not 4.4+.0
I have wrote regular expression to accept following type of versions
"a.." ---> any version of "a"
"a.b.*" ---> any version of "a.b"
"a.b+" ...
0
votes
1
answer
748
views
How to implement semantic versioning in GitHub Actions workflow?
I would like to semantic versioning my docker images which are built and pushed to GitHub Container Registry by the GitHub Action.
I found a satisfying solution here: https://stackoverflow.com/a/...