actions: Azure Pipeline Task `gitversion/setup@0` `0.10.0` does not work

Job Info:

2023-03-11T10:09:11.4076992Z ##[section]Starting: Initialize job
2023-03-11T10:09:11.4078832Z Agent name: 'Hosted Agent'
2023-03-11T10:09:11.4079558Z Agent machine name: 'fv-az366-506'
2023-03-11T10:09:11.4079924Z Current agent version: '2.217.2'
2023-03-11T10:09:11.4120792Z ##[group]Operating System
2023-03-11T10:09:11.4121199Z Ubuntu
2023-03-11T10:09:11.4121498Z 22.04.2
2023-03-11T10:09:11.4121709Z LTS
2023-03-11T10:09:11.4122012Z ##[endgroup]
2023-03-11T10:09:11.4122389Z ##[group]Runner Image
2023-03-11T10:09:11.4122758Z Image: ubuntu-22.04
2023-03-11T10:09:11.4123151Z Version: 20230305.1
2023-03-11T10:09:11.4123565Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230305.1/images/linux/Ubuntu2204-Readme.md
2023-03-11T10:09:11.4124165Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230305.1
2023-03-11T10:09:11.4124572Z ##[endgroup]
2023-03-11T10:09:11.4124807Z ##[group]Runner Image Provisioner
2023-03-11T10:09:11.4125249Z 2.0.117.1
2023-03-11T10:09:11.4125506Z ##[endgroup]
2023-03-11T10:09:11.4126915Z Current image version: '20230305.1'
2023-03-11T10:09:11.4130726Z Agent running as: 'vsts'
2023-03-11T10:09:11.4190457Z Prepare build directory.
2023-03-11T10:09:11.4591200Z Set build variables.
2023-03-11T10:09:11.4627381Z Download all required tasks.
2023-03-11T10:09:11.4759877Z Downloading task: gitversion/setup (0.10.0)
2023-03-11T10:09:12.5118856Z Downloading task: gitversion/execute (0.10.0)
2023-03-11T10:09:12.6213823Z Downloading task: Docker (2.214.0)
2023-03-11T10:09:14.0289651Z Downloading task: CmdLine (2.212.0)
2023-03-11T10:09:14.4004970Z Checking job knob settings.
2023-03-11T10:09:14.4018743Z    Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES) 
2023-03-11T10:09:14.4019950Z    Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
2023-03-11T10:09:14.4021835Z    Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
2023-03-11T10:09:14.4024832Z    Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT) 
2023-03-11T10:09:14.4025590Z Finished checking job knob settings.
2023-03-11T10:09:14.4465022Z Start tracking orphan processes.
2023-03-11T10:09:14.4678465Z ##[section]Finishing: Initialize job

gitversion/setup@0:

2023-03-11T10:09:21.2207896Z ##[section]Starting: Install GitVersion
2023-03-11T10:09:21.2218152Z ==============================================================================
2023-03-11T10:09:21.2218501Z Task         : Setup GitVersion Task
2023-03-11T10:09:21.2218682Z Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
2023-03-11T10:09:21.2218967Z Version      : 0.10.0
2023-03-11T10:09:21.2219124Z Author       : GitTools Contributors
2023-03-11T10:09:21.2219319Z Help         : See the [documentation](https://gitversion.net/docs/) for help
2023-03-11T10:09:21.2219579Z ==============================================================================
2023-03-11T10:09:21.7648972Z ##[error]Unhandled: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:09:21.7691480Z ##[error]Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
    at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)
    at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)
    at Object._setResourcePath [as setResourcePath] (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5876:23)
    at Object../node_modules/azure-pipelines-tool-lib/tool.js (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:11453:4)
    at __webpack_require__ (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
    at Module../src/agent/azure/build-agent.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31568:87)
    at __webpack_require__ (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
    at Module../src/core/ioc.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31853:81)
    at __webpack_require__ (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
    at Module../src/tasks/gitversion/main.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31982:67)
2023-03-11T10:09:21.7696761Z /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9820
2023-03-11T10:09:21.7697319Z 	throw e;
2023-03-11T10:09:21.7697604Z 	^
2023-03-11T10:09:21.7697712Z 
2023-03-11T10:09:21.7698370Z Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:09:21.7699310Z     at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)
2023-03-11T10:09:21.7700261Z     at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)
2023-03-11T10:09:21.7701235Z     at Object._loc [as loc] (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5907:26)
2023-03-11T10:09:21.7702195Z     at process.<anonymous> (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:6726:42)
2023-03-11T10:09:21.7702818Z     at process.emit (events.js:203:15)
2023-03-11T10:09:21.7703317Z     at process._fatalException (internal/bootstrap/node.js:497:27)
2023-03-11T10:09:21.7943821Z ##[error]Exit code 7 returned from process: file name '/home/vsts/agents/2.217.2/externals/node10/bin/node', arguments '"/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js"'.
2023-03-11T10:09:21.7957361Z ##[section]Finishing: Install GitVersion

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 31 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Version 0.10.1 still broken

image

As a work around you can modify your pipeline to specify the task version to download:

- task: gitversion/setup@0.9.15 and - task: gitversion/execute@0.9.15

That is correct, I forgot about this

As a work around you can modify your pipeline to specify the task version to download:

- task: gitversion/setup@0.9.15 and - task: gitversion/execute@0.9.15

Thanks for fixing this and for maintaining this project!

Thank you for confirmation, then I can close this one. As a recommendation - pin the task version for your pipelines, and only try the latest version when there is no risk of disturbing the releases

I will revert the changes and release a new version

It worked, thanks for the fast update

version 0.10.2 published, please give it a try