Invalid argument in UseGitVersion VS Task
See original GitHub issueHi,
We’re having issues when using the UseGitVersion task on a dotnetcore 3.1 project. Here are the logs :
Starting: UseGitVersion
==============================================================================
Task : GitVersion Task
Description : Easy Semantic Versioning (http://semver.org) for projects using Git
Version : 5.1.2
Author : GitVersion Contributors
Help : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help
==============================================================================
--------------------------
Installing GitVersion.Tool version 5.1
--------------------------
/opt/hostedtoolcache/dncs/3.1.100/x64/dotnet tool install GitVersion.Tool --tool-path /home/vsts/work/_temp --version 5.1.2
You can invoke the tool using the following command: dotnet-gitversion
Tool 'gitversion.tool' (version '5.1.2') was successfully installed.
Caching tool: GitVersion.Tool 5.1.2 x64
##[error]Error: EINVAL: invalid argument, readlink '/opt/hostedtoolcache/dncs/3.1.100/x64/dotnet'
Finishing: UseGitVersion
And here’s the yaml part of the task :
- task: UseGitVersion@5
inputs:
versionSpec: '5.1'
updateAssemblyInfo: true
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:23 (13 by maintainers)
Top Results From Across the Web
Invalid argument in UseGitVersion VS Task · Issue #40
Hi, We're having issues when using the UseGitVersion task on a dotnetcore 3.1 project. Here are the logs : Starting: UseGitVersion ...
Read more >GitVersion on Azure DevOps yaml pipeline fails on Linux
Tested the same task and got the same issue. ##[error]Error: EINVAL: invalid argument, readlink '/opt/hostedtoolcache/dotnet/dotnet'.
Read more >Azure DevOps
The custom build step requires a one-time setup to import the GitVersion task into your TFS or Azure DevOps Pipeline instance.
Read more >GitTools/GitVersion - Gitter
Hi! When I use GitVersion on my dev machine I get a branch name excluding the remote but when I run the build...
Read more >Nuget Package Versioning in Azure DevOps with GitVersion
If you blinked last year (or hiked the Appalachian trail) you may have ... task: NuGetCommand@2 inputs: command: custom arguments: install ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just tried that by using 5.1.3, but the issue persists
Is there another problem? Haven’t had an issue so far on our local Windows buildservers, but the error above occured on a
Ubuntu-16.04
image.ok great, closing the issue. Closed by #41