actions: Invalid argument in UseGitVersion VS Task

Hi,

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 23 (13 by maintainers)

Most upvoted comments

Just tried that by using 5.1.3, but the issue persists

2020-01-27T10:25:00.6229190Z ##[section]Starting: UseGitVersion
2020-01-27T10:25:00.6232209Z ==============================================================================
2020-01-27T10:25:00.6232282Z Task         : GitVersion Task
2020-01-27T10:25:00.6232318Z Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
2020-01-27T10:25:00.6232417Z Version      : 5.1.2
2020-01-27T10:25:00.6232456Z Author       : GitVersion Contributors
2020-01-27T10:25:00.6232493Z Help         : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help
2020-01-27T10:25:00.6232569Z ==============================================================================
2020-01-27T10:25:03.5865497Z 
2020-01-27T10:25:03.5866276Z --------------------------
2020-01-27T10:25:03.5866448Z Installing GitVersion.Tool version 5.x
2020-01-27T10:25:03.5866766Z --------------------------
2020-01-27T10:25:04.2829229Z [command]/opt/hostedtoolcache/dotnet/dotnet tool install GitVersion.Tool --tool-path /home/vsts/work/_temp --version 5.1.3
2020-01-27T10:25:09.9043891Z 
2020-01-27T10:25:09.9044799Z Welcome to .NET Core 3.1!
2020-01-27T10:25:09.9046153Z ---------------------
2020-01-27T10:25:09.9046441Z SDK Version: 3.1.101
2020-01-27T10:25:09.9046650Z 
2020-01-27T10:25:09.9046876Z Telemetry
2020-01-27T10:25:09.9047383Z ---------
2020-01-27T10:25:09.9048239Z The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2020-01-27T10:25:09.9048443Z 
2020-01-27T10:25:09.9048933Z Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2020-01-27T10:25:09.9049126Z 
2020-01-27T10:25:09.9049483Z ----------------
2020-01-27T10:25:09.9049950Z Explore documentation: https://aka.ms/dotnet-docs
2020-01-27T10:25:09.9050162Z Report issues and find source on GitHub: https://github.com/dotnet/core
2020-01-27T10:25:09.9050566Z Find out what's new: https://aka.ms/dotnet-whats-new
2020-01-27T10:25:09.9051069Z Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
2020-01-27T10:25:09.9051514Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
2020-01-27T10:25:09.9051929Z Write your first app: https://aka.ms/first-net-core-app
2020-01-27T10:25:09.9052429Z --------------------------------------------------------------------------------------
2020-01-27T10:25:09.9052855Z You can invoke the tool using the following command: dotnet-gitversion
2020-01-27T10:25:09.9053331Z Tool 'gitversion.tool' (version '5.1.3') was successfully installed.
2020-01-27T10:25:09.9100939Z Caching tool: GitVersion.Tool 5.1.3 x64
2020-01-27T10:25:11.1406677Z ##[error]Error: EINVAL: invalid argument, readlink '/opt/hostedtoolcache/dotnet/dotnet'
2020-01-27T10:25:11.3557532Z ##[section]Finishing: UseGitVersion

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.