hugo-vsts-extension icon indicating copy to clipboard operation
hugo-vsts-extension copied to clipboard

[Error] Step task reference is invalid

Open PiotrWachulec opened this issue 3 years ago • 4 comments

Hey!

I'm trying to use the latest version of the task, but I'm getting the below error:

Step task reference is invalid. The task name HugoTask is ambiguous. Specify one of the following identifiers to resolve the ambiguity: giuliovdev.hugo-extension.hugo-build-task.HugoTask, giuliovdev.hugo-extension.hugo-build-task-v2.HugoTask

Zrzut ekranu 2022-01-16 o 23 18 49
- task: HugoTask@2
        inputs:
          source: './'
          destination: '$(Build.ArtifactStagingDirectory)'
          extendedVersion: true
          baseURL: ...

Could you help me with that? I tried to run that task on Ubuntu-latest and VS2017-Win2016 machines. Many thanks in advance!

PiotrWachulec avatar Jan 16 '22 22:01 PiotrWachulec

same here :(

MatthiasKammerlohr avatar Jan 18 '22 16:01 MatthiasKammerlohr

After some research in azure devops forums i found out you can reference the task by ID:

- task: "5F838DA4-D713-497A-BD7A-4987F25E3C2F@1"
- task: "528c73d9-c552-4e2d-a26f-fb5c91c32554@2"

Hope this helps!

MatthiasKammerlohr avatar Jan 18 '22 18:01 MatthiasKammerlohr

Nice to hear, that tasks can be referenced by ID, a temporary workaround for sure... But I believe that a permanent solution will be better :) Anyway, thanks @MatthiasKammerlohr!

PiotrWachulec avatar Jan 18 '22 19:01 PiotrWachulec

Sorry, I clearly missed some test case. I have another update in queue and hopefully can release it soon.

giuliov avatar Jan 18 '22 20:01 giuliov