Comments (1)
Hey @ben-foster-cko, thank for asking these questions.
The main thing to bear in mind is that MinVer performs no logic at all based on branch names. In fact, there is nothing in MinVer which even attempts to read which branches the current commit is contained in. The version is purely based on the last tag found in the history and the height of the current commit from that tag. There's more on this in the README.
- When branching off feature branches the version remains the same as
develop
. Am I right in thinking that the only way to deploy feature artefacts would be to tag them explicitly?
Feature branches will indeed be versioned in the same way as develop, only the height will change as the current commit gets further away from the last tag. If you want a specific version to be built from your feature branch then yes, you can tag the commit. Or you can add some special logic yourself based on the name of the current branch using a similar technique to those described in the README for performing custom logic.
- When squash merging a feature branch back into develop it didn't bump the version of
develop
(it remained as 0.1.0)
Correct, for the reasons described above.
- When merging develop into master and tagging, then switching back to develop, it didn't bump the version - I would expect this to be the same as master (0.1.1) - perhaps due to using annotated tags?
Correct, for the reasons described above. Annotated tags should be fine, although I don't think I've tested them explicitly. I should probably add something into the tests to make sure they are handled correctly.
In short, don't expect MinVer to work the same way as GitVersion. When I started prototyping, I did attempt to introduce logic around branching, but it very quickly turned into a can of worms. MinVer is purely tag-based versioning, and branches are irrelevant.
from minver.
Related Issues (20)
- Fails on `osx-arm64` HOT 9
- .NET 6 binaries HOT 2
- 4.1.0 release
- Error when git not installed HOT 5
- Produce an MSBuild error when Git is not present in PATH HOT 2
- Remove redundant MSB3073 error when a MinVer MSBuild error is produced HOT 1
- MinVer in WPF projects HOT 6
- 4.2.0 release
- Allow tags with the format v1.0 or v1.1 HOT 4
- 4.3.0 release
- Tags ignored with actions/checkout@v3 HOT 2
- Do not include MinVerBuildMetadata in PackageVersion HOT 5
- Allow for disabling the pre-release additions by a property value HOT 4
- disable MinVerAutoIncrement HOT 5
- 5.0.0 release
- MinVerBuildMetadata included in .Net 8 SDK build but not .Net 6 SDK HOT 5
- Is it time to revisit the MSBuild task idea? HOT 2
- Auto increment patch part not working HOT 2
- Allow a fourth "Revision" version part to be used. HOT 3
- Installing 4.3.0 with Nuke build causes multiple versions to be referenced HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minver.