Open neopsyon opened 3 years ago
Hello,
just ran it into the same case today.
VERBOSE:
Invoking PSdepend...
D:\a\1\s\Build\build.ps1 : UNEXPECTED ERROR:
warning: refname '224ef3228331ebc4acf2303e6a1f82728227b095' is ambiguous.
t C:\Users\Vss
dministrator\Documents\WindowsPowerShell\Modules\BuildHelpers\2.0.15\Public\Get-BuildVariable.ps1:189 char:17
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Git
At D:\a\_temp\69904975-11fd-4279-a0e4-b008df7a9665.ps1:3 char:1
`
Hello @maondrej
This is how I made the workaround, but definitely, it's some kind of anomaly under the hood.
In my build or publish task, for example, I added the following command before the execution of the Module related commands.
git config advice.objectNameWarning false
Hello,
We're utilizing the BuildHelpers along with https://github.com/psake/PowerShellBuild module. Environment: Azure Pipelines Lately, we're seeing that multiple pipelines are failing due to the error message Invoke-Git : warning: refname 'x' is ambiguous. The error seems to appear randomly, and if the same build is re-run multiple times, sometimes it passes over the error.