I'm having a go using the Any Terraform provider, ...
# general
l
I'm having a go using the Any Terraform provider, against OctopusDeployLabs/octopusdeploy. I'm working from an empty dir, and I ran
pulumi new
with the typescript template, upgraded to
yarn set version stable ; yarn
and then ran
pulumi package add terraform-provider OctopusDeployLabs/octopusdeploy
. I'm getting an error:
➤ YN0009: │ @pulumi/octopusdeploy@file:sdks/octopusdeploy#sdks/octopusdeploy::hash=b7f4d3&locator=octopus%40workspace%3A. couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-3a9333d5/build.log)
And the log file has
Copy code
# This file contains the result of Yarn building a package (@pulumi/octopusdeploy@file:sdks/octopusdeploy#sdks/octopusdeploy::hash=abca2f&locator=octopus%40workspace%3A.)
# Script name: postinstall

/bin/sh: 1: tsc: not found
Command failed: tsc
/bin/sh: 1: tsc: not found
: 
/bin/sh: 1: tsc: not found
Which is fair enough, since tsc isn't installed. It shouldn't have to be, right?
npx tsc
works fine. I can't install it via
apt
, there seems to be an issue with dependencies, but I don't really want to install it, since it's not needed outside of this project. I'd be happy to update postinstall.js to use `npx tsc`; is that something that I can / should do? Where would I update it? If I edit the version in sdks/octopusdeploy, it gets overwritten the next time I kick off
pulumi package add ...
.
As an interim fix, I have updated sdks/octopusdeploy/scripts/postinstall,js to run
npx tsc
instead of
tsc
. While
pulumi package add ...
still causes this to break, at least
yarn
is now working.