Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:55
    chriscone-nano commented #1437
  • Dec 07 09:23
    gep13 commented #1976
  • Dec 07 09:23

    gep13 on master

    fix grammar ("works Windows" → … Merge pull request #1976 from a… (compare)

  • Dec 07 09:23
    gep13 closed #1976
  • Dec 07 05:14
    anirvan opened #1976
  • Dec 07 04:00
    stale[bot] closed #1769
  • Dec 06 14:03
    StanleyGoldman commented #1974
  • Dec 06 14:03
    StanleyGoldman closed #1974
  • Dec 06 13:49
    StanleyGoldman synchronize #1974
  • Dec 06 13:47
    StanleyGoldman edited #1974
  • Dec 06 13:20
    stale[bot] unlabeled #1768
  • Dec 06 13:20
    asbjornu reopened #1768
  • Dec 06 13:20
    asbjornu commented #1768
  • Dec 06 13:17
    thomaswr commented #912
  • Dec 06 13:15
    StanleyGoldman synchronize #1974
  • Dec 06 09:46
    andrew-allen-work synchronize #1975
  • Dec 06 09:22
    andrew-allen-work opened #1975
  • Dec 06 09:00
    stale[bot] closed #1768
  • Dec 06 06:07
    StanleyGoldman opened #1974
  • Dec 06 05:57
    StanleyGoldman synchronize #1966
Stanley Goldman
@StanleyGoldman
on Mac and Linux environments, GitVersion is not
I'm currently migrating a pet project from AppVeyor to GitHub Actions, wanted to use linux, and I did not have choco by default on linux
I responded by creating a GitHub Action that installs GitVersion in linux and mac: https://github.com/StanleyGoldman/setup-gitversion
After conversing with some coworkers, a maintainer of libgit2 also felt himself in the same corner, and implemented one for himself: https://github.com/ethomson/setup-gitversion
Stanley Goldman
@StanleyGoldman
I realize it would be better to get GitVersion's command line tool installed into GitHub Actions for Linux and Mac environments
if nothing else, but for the sake of parity
i hope i've made sense of my verbal thought diarrhea earlier...
Gary Ewan Park
@gep13
Yip, it totally makes sense to get GitVersion installed by default on the base images that ship as part of GitHub Actions. I think there is still some merit in having a GitHub Action that installs the GitVersion .Net Global Tool though. That way, when using another image to run your GitHub Actions, you have the ability to install GitVersion on any OS that has .Net Core installed.
Stanley Goldman
@StanleyGoldman
hmm, i think i'm starting to see your point
Gary Ewan Park
@gep13
:+1:
רום חביב
@romhaviv_gitlab
Hi, does anyone have experience with GitVersionTask Nuget by any chance?
if so I have struggled with this for a while: https://stackoverflow.com/questions/58714174/gitversion-nuget-version-to-include-sha
in short, I'm trying to format my NugetVersion instead of using the default, by adding -{ShortSha} in the end (to versions with prefix)
Rodney Littles II
@RLittlesII

I am seeing a weird issue with hotfix branches.

GitVersion seems to break with an Object Reference error when I create hotfix/v1.2.1 naming conventions.

Is this normal? Should the name I use for a hotfix branch matter? Seems if I rename the branch at the head after a given commit and push again everything works.

If I am missing something in the docs, I apologize. I am not above reading the manual.

Mattias Karlsson
@devlead
Does it work if you skip the v just hotfix/1.2.1 ?
Rodney Littles II
@RLittlesII

Yes. And being fair the first push to this branch works fine, its only subsequent ones that fail.

I am testing that additional pushes to the hotfix/1.2.1 functions as expected.

Rodney Littles II
@RLittlesII
@devlead I used hotfix/assets the first push was fine. The second caused an error. I am going to submit an issue with the output.
Rodney Littles II
@RLittlesII
Or maybe I'll update to latest and try again before submitting an issue.
Ryan Peach
@ryanpeach
Does anyone have an example jenkins declarative pipeline using gitversion?
Jericho
@Jericho
I am currently investigating an issue in my build but was hoping someone could share some pointers: I am getting Could not load type AsyncCompletedEventArgs from assembly System.Net.WebHeaderCollection (see build log). This occurs when trying to calculate version.
Jericho
@Jericho
I do not get this exception when running locally:
========================================                                                                                                            
AppVeyor-Build_Number                                                                                                                               
========================================                                                                                                            
Executing task: AppVeyor-Build_Number                                                                                                               
Executing: "D:/_build/Http-Multipart-Data-Parser/tools/GitVersion.CommandLine.5.1.2/tools/GitVersion.exe" -output buildserver -verbosity Debug      
INFO [11/23/19 17:04:23:08] Working directory: D:\_build\Http-Multipart-Data-Parser                                                                 
INFO [11/23/19 17:04:23:09] IsDynamicGitRepository: False                                                                                           
INFO [11/23/19 17:04:23:11] Returning Project Root from DotGitDirectory: D:\_build\Http-Multipart-Data-Parser\.git\ - D:\_build\Http-Multipart-Data-
Parser\                                                                                                                                             
INFO [11/23/19 17:04:23:11] Running on Windows.                                                                                                     
INFO [11/23/19 17:04:23:11] Project root is: D:\_build\Http-Multipart-Data-Parser\                                                                  
INFO [11/23/19 17:04:23:11] DotGit directory is: D:\_build\Http-Multipart-Data-Parser\.git                                                          
INFO [11/23/19 17:04:23:15] Begin: Loading version variables from disk cache                                                                        
  INFO [11/23/19 17:04:23:16] Begin: Deserializing version variables from cache file D:\_build\Http-Multipart-Data-Parser\.git\gitversion_cache\13BE
269124B2E5D159064440AA6A034F4A59A4A0.yml                                                                                                            
  INFO [11/23/19 17:04:23:21] End: Deserializing version variables from cache file D:\_build\Http-Multipart-Data-Parser\.git\gitversion_cache\13BE26
9124B2E5D159064440AA6A034F4A59A4A0.yml (Took: 58.71ms)                                                                                              
  INFO [11/23/19 17:04:23:22] End: Loading version variables from disk cache (Took: 61.41ms)                                                        
Finished executing task: AppVeyor-Build_Number
Artur
@arturcic
@Jericho there is an open issue related GitTools/GitVersion#1873
Jericho
@Jericho
@arturcic thanks. I'll add comment to the issue
Nikita Kazachkov
@NikitaKazachkov_gitlab
Hi! Please tell me how to use GitVersion with GitLab CI? I use nuke-build that wraps GitVersion calls. Not working with GitLab CI:
" > /usr/bin/dotnet /root/.nuget/packages/gitversion.tool/5.1.1/tools/netcoreapp3.0/any/GitVersion.dll
Error parsing Infinity value. Path '', line 1, position 1."
Karim Garza
@karimgarza
Has anybody been able to run Gitversion in Centos 7? I downloaded the binary but it does not run and it throws this error "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception."
Artur
@arturcic
Which version have you installed?
Karim Garza
@karimgarza
@arturcic 5.1.1 and 5.1.2
Artur
@arturcic
which executable? is it global tool?
is that what you are asking for /.
i have dotnet --version "3.0.101"
Artur
@arturcic
if you use that, how do you run it?
Karim Garza
@karimgarza
from within the directory of my application i just run ./GitVersion
Artur
@arturcic
hmm
intereseting
can you also try the global tool?
Karim Garza
@karimgarza
where is that ?
how do i do that
Karim Garza
@karimgarza
Great! that works
Artur
@arturcic
great
Karim Garza
@karimgarza
i did not know that existed
thakn you
Artur
@arturcic
you're welcome
Nikita Kazachkov
@NikitaKazachkov_gitlab
Does GitVersion work with dotnet cli?
There is an example of using GitLab?
Simon Novak
@snovak7
GitVersionTask nuget package tags the binaries
But disable automatic assembly generation
AssemblyInfo that is
Mattias Karlsson
@devlead
@NikitaKazachkov_gitlab yes, use GitVersion tool with .NET Core CLI
https://www.nuget.org/packages/GitVersion.Tool/
Josh Close
@JoshClose
I'm running nuke.build on TeamCity and am getting this error from GitVersion:
Error parsing Infinity value. Path '', line 1, position 1.
this is on ubuntu 18