https://pulumi.com logo
Title
i

icy-football-94152

07/04/2021, 9:09 AM
My Pulumi automation program has started throwing exceptions (via the dotnet-sdk) when I call stack.UpAsync(). The exception message includes "stderr: warning: A new version of Pulumi is available. To upgrade from version '3.5.1' to '3.6.0'". Is the Pulumi sdk really throwing an exception to force me to upgrade?
b

billowy-army-68599

07/04/2021, 4:29 PM
it shouldn't be throwing an exception, just a warning. in any case, you can disable this check by setting the environment variable
PULUMI_SKIP_UPDATE_CHECK=true
i

icy-football-94152

07/05/2021, 9:06 AM
@billowy-army-68599 Is there an api I can call to set the same environmental value? I ask because I will be running my Pulumi automation program in a transient container runtime, this is currently a pub-sub subscriber within a Dapr application.
b

billowy-army-68599

07/05/2021, 3:25 PM
@icy-football-94152 there's no API no, but you could set the env var at the container level (assuming it's a Docker container)
ENV PULUMI_SKIP_UPDATE_CHECK=true