giuliov / hugo-vsts-extension

Generate a site using Hugo, a Fast and Flexible Website Generator, running in Visual Studio Team Services or Team Foundation Server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot convert value to type System.String

grandynguyen opened this issue · comments

Something must have changed on VSTS. I don't think this repo has seen any commits since this error occured. Error message shown below. I tried leaving the source input box blank and with $(Build.SourcesDirectory). I'll try to look into it when I get a chance.

2018-07-13T04:22:18.3827699Z ##[section]Starting: Hugo generate 
2018-07-13T04:22:18.4068045Z ==============================================================================
2018-07-13T04:22:18.4068308Z Task         : Hugo
2018-07-13T04:22:18.4068578Z Description  : Generate a static web site using Hugo, a Fast and Flexible Website Generator
2018-07-13T04:22:18.4068793Z Version      : 1.0.1
2018-07-13T04:22:18.4068976Z Author       : Giulio Vian
2018-07-13T04:22:18.4069236Z Help         : [More Information on Task](https://github.com/giuliov/hugo-vsts-extension/README.md), for [Information on Hugo](https://gohugo.io/).
2018-07-13T04:22:18.4069551Z ==============================================================================
2018-07-13T04:22:26.3617317Z ##[error]Cannot process argument transformation on parameter 'SourceUrl'. Cannot convert value to type System.String.
2018-07-13T04:22:26.3647731Z ##[section]Finishing: Hugo generate 

It is not VSTS: something changed in GitHub Hugo site. It breaks trying to list the executable in order to download it.
Now I see that I can get the right URL on the first request.

Please check, should be fixed now. Make sure that the task version is 1.1.1.