Open dazinator opened 2 days ago
Hm this is working now, here are my conclusions.
checkout
step someone had accidentally moved so it wasn't the first step under steps
- i think this is what initially caused the problem.@3.0.3
for the task versions.The fix seemed to be changing the task versions back to @0
e.g gitversion/setup@0
and gitversion/execute@0
- task: gitversion/setup@0
displayName: Install GitVersion
inputs:
versionSpec: '5.12.0'
- task: gitversion/execute@0
displayName: Determine Version
name: Version
inputs:
useConfigFile: true
configFilePath: GitVersion.yml
You'll notice I am specifying 5.12.0
because this was the version of gitversion that has been working previously. When I specified this version using @3.0.3
it still failed with same error and even with the correct checkout
step for unshallow and clean
. When I then moved back to @0
it started working.
I am not sure if there is some caching between the tools or anything like that, but its very odd.
Prerequisites
GitVersion package
GitVersion.Tool, AzureDevops task
GitVersion version
6.0.5
Operating system
Linux
What are you seeing?
In my azure-pipleines.yml
The see the
-unshallow
option being used in checkout happening in the azure devops pipeline logsThe install step succeeds
However then the execute step fails
I am very confused.. looking for inspiration or ideas?
What is expected?
I didn't expect it to report a shallow clone with the checkout step fetch depth set to 0.
Steps to Reproduce
as per above is my current setup. Not sure how reproducable.
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).