https://pulumi.com logo
#contribute
Title
# contribute
t

thousands-toothbrush-98776

09/01/2023, 6:55 PM
Hi Pulumi! I’d like to build a provider for Jotform. I found the provider boilerplate, created my own Github repo from it, and I am using the official pulumi docker image (tag 3.80.0) to build it, following the boilerplate instructions. But I’m getting an error from the dotnet build,
/root/.dotnet/sdk/6.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(206,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/data/sdk/dotnet/Pulumi.Jotform.csproj]
I followed the instructions and created a new repo from the boilerplate, then changed all ‘xyz’ and ‘Xyz’ to ‘jotform’ and ‘Jotform’ using this series of commands:
Copy code
git clone git@github.com:ecmonsen/pulumi-provider-jotform.git
 cd pulumi-provider-jotform/
 # Replace xyz with jotform, directories
 mv provider/cmd/pulumi-resource-xyz provider/cmd/pulumi-resource-jotform
 mv sdk/go/xyz sdk/go/jotform
 mv sdk/python/pulumi_xyz sdk/python/pulumi_jotform
 # Replace xyz with jotform, files
 find . -type f | xargs grep -l xyz | grep -v git | xargs perl -pi -e 's/xyz/jotform/g'
 find . -type f | xargs grep -l Xyz | grep -v git | xargs perl -pi -e 's/Xyz/Jotform/g'
Then ran
Copy code
docker run --rm -it -v $(pwd):/data --entrypoint bash pulumi/pulumi
Then, inside the docker container:
Copy code
root@56e14e4c6f93:/# cd /data
root@56e14e4c6f93:/data# pulumi version
v3.80.0
root@56e14e4c6f93:/data# go version
go version go1.20.3 linux/amd64
root@56e14e4c6f93:/data# python --version
Python 3.9.18
root@56e14e4c6f93:/data# dotnet --version
6.0.413
root@56e14e4c6f93:/data# make build install
##### ... output from successful Go build, then: ... ####
 rm -rf sdk/dotnet
pulumi package gen-sdk /data/bin/pulumi-resource-jotform --language dotnet
cd sdk/dotnet/&& \
	echo "" >version.txt && \
	dotnet build /p:Version=

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.413

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: <https://aka.ms/dotnet-cli-telemetry>

----------------
Installed an <http://ASP.NET|ASP.NET> Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: <https://aka.ms/dotnet-https>
----------------
Write your first app: <https://aka.ms/dotnet-hello-world>
Find out what's new: <https://aka.ms/dotnet-whats-new>
Explore documentation: <https://aka.ms/dotnet-docs>
Report issues and find source on GitHub: <https://github.com/dotnet/core>
Use 'dotnet --help' to see available commands or visit: <https://aka.ms/dotnet-cli>
--------------------------------------------------------------------------------------
MSBuild version 17.3.2+561848881 for .NET
  Determining projects to restore...
  Restored /data/sdk/dotnet/Pulumi.Jotform.csproj (in 2.26 sec).
/root/.dotnet/sdk/6.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(206,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/data/sdk/dotnet/Pulumi.Jotform.csproj]

Build FAILED.

/root/.dotnet/sdk/6.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(206,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [/data/sdk/dotnet/Pulumi.Jotform.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:05.23
make: *** [Makefile:37: dotnet_sdk] Error 1
l

limited-rainbow-51650

09/04/2023, 8:21 AM
Hello @thousands-toothbrush-98776, do you have this in a public repo so I can have a look at the latest state? I tried https://github.com/ecmonsen/pulumi-provider-jotform but got a 404.
t

thousands-toothbrush-98776

09/05/2023, 6:27 PM
Hi @limited-rainbow-51650 sorry I made that repo private for now, while I’m messing around and learning. It turned out I had to install
pulumictl
on the docker container and then the build worked.
I didn’t alter any code from the pulumi provider boilerplate project