kandi X-RAY | gittools Summary
kandi X-RAY | gittools Summary
gittools
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gittools
gittools Key Features
gittools Examples and Code Snippets
Community Discussions
Trending Discussions on gittools
QUESTION
I have a repo in azure and it has the default branch "main".
Also, I have a task in yml file for semantic versioning.
...ANSWER
Answered 2021-Jan-07 at 11:22It looks that this is not supported yet by GitTools\GitVersion and it is still waiting for a solution.
But to overcome this you can provide GitVersion.yml file
QUESTION
I have a couple of webapps I am adding gitversion to. Main problem - GitVersion is generating a MajorMinorPatchTag where the Major is in the format yyyymmdd. Aside from this not being a valid major version, I want the usual versioning 0.1.3.alpha.1 in the example below but I am getting 20201021.1.1.
I have removed all the old build tags from the repo so it does not appear to be finding this from tags. Is there anywhere else I can force it to ignore previous build versions and use the semver starting from the gitversion.yml/next-version setting?
Detail below:
The gitversion.yml is simple:
...ANSWER
Answered 2020-Oct-21 at 22:42GitTools.UseGitVersion is deprected thus I recommend you switch to GitTools bundle and then you can use it like this:
QUESTION
I'm hoping to use fuzzy wuzzy to compare all strings in a list against each other, but it looks not every string is being compared against one another in the list. Here's what I've tried:
...ANSWER
Answered 2020-Aug-17 at 18:21The function process.extract
in fuzzywuzzy has the following arguments:
QUESTION
I'm trying to install package in julia 1.4.2 but it always returns this:
...ANSWER
Answered 2020-Jul-07 at 10:33This probably due to the ~/.gitconfig
proxy issue discussed on github, so try mv .gitconfig .gitconfig_
to see if it works.
QUESTION
I can successfully get the full json string with:
...ANSWER
Answered 2020-May-29 at 20:51I think the problem is the path argument passed to GitVersion. pwd
will give you the working directory on your host, not within the container. GitVersion is unfortunately not aware of the fact that it's executing within a container, so it needs to be provided with the volume directory /repo
as the path to calculate a version number for. This is something we should consider changing in version 6.
I also can't remember when -showvariable
was implemented, so to be on the safe side you should try with a newer version of our Docker containers. I can also recommend using the alpine
container, as it's the smallest one we offer (only 83.9 MB). This works:
QUESTION
I have a Visual Studio project which is built as a NuGet lib package. But every time I publish the package, I have to change the version number manually. That's a prone-to-error work. I'd like to generate and increase the package version number automatically.
I found GitVersion tool to solve this problem. And I also found some semantic versioning blogs to explain the package version of continuous delivery.
- GitTools/GitVersion: Easy Semantic Versioning (http://semver.org) for projects using Git
- GitVersion Documentation
- Versioning NuGet packages in a continuous delivery world: part 1 – Microsoft DevOps Blog
- Versioning NuGet packages in a continuous delivery world: part 2 – Microsoft DevOps Blog
- Versioning NuGet packages in a continuous delivery world: part 3 – Microsoft DevOps Blog
But unfortunately, The GitVersion package does not work correctly for me.
- It gives me an error that AssemblyVersionAttribute is duplicated.
- If I add
false
into the csproj file, It will do nothing and the package version will be 0.0.0.0.
Maybe the reason is that I'm using the new csproj format. See here to view the csproj file and the file looks like this:
...ANSWER
Answered 2018-Apr-12 at 16:14Not sure about Jenkins, but it should be able to generate an incremental number or timestamp by itself that can be accessed via an environment variable on your build pipeline.
I think the most flexible way is to add a PackageVersion
tag with a placeholder to your csproj that your build pipeline can then change:
QUESTION
Talking about UseGitVersion@5
Azure DevOps task, which is a wrapper around the actual GitVersion tool. I looked at the various GitVersion configuration options, but I could not find anything that will increment per build. Not per commit, per build. I have a build counter value I can pass to GitVersion, if it would be willing to accept it somehow, but I don't see any argument or option to use it.
The only option I found so far is to override the next-version
value in GitVersion.yml
, but I would prefer to increment the PreReleaseTag rather than the semver.
ANSWER
Answered 2020-Mar-18 at 12:20You can include environment variables in the various *-format
properties in GitVersion.yml
through the {env:ENVIRONMENT_VARIABLE}
syntax.
QUESTION
I tried
...ANSWER
Answered 2020-Mar-04 at 06:17The problem was I guess a firewall issue. I was working on my institution wifi. And then I changed it to my personal hotspot and tried installing it again and it worked.
QUESTION
I've an ASP.NET Core application I'm publishing on a dedicated server via Azure DevOps build/release pipelines.
I'm managing the application version number with the GitVersion task (gittools.gitversion.gitversion-task.GitVersion@4
) in the YAML build.
The build step is something like:
...ANSWER
Answered 2020-Jan-28 at 20:30Try adding -p:Version=$(GitVersion.FullSemVer)
to your arguments for the publish step.
QUESTION
I have this in my gitlab-ci.yml:
...ANSWER
Answered 2020-Jan-10 at 18:01both
pwd
andecho $(pwd)
do not show up in the output,
This comes from the fact no command is actually executed inside the container, because this image gittools/gitversion
contains the following entrypoint:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gittools
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page