pulumi/sdk/nodejs/tests/automation
Julien P 96b7e56799
Allow disabling version validation when using a custom PulumiCommand isntance (#15242)
# Description

When we introduced `PulumiCommand` we maintained the existing behaviour
to disable validating the version. However when creating a custom
`PulumiCommand` instance instead of letting `LocalWorkspace` [create
it](c306b13c51/sdk/nodejs/automation/localWorkspace.ts (L307)),
there is no way to disable the validation.

This PR makes `skipVersionCheck` a documented option and additionally
checks `PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK` inside
`PulumiCommand`.

`PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK` always takes precedence. When
running with that env variable set, there's no way to turn off checks.
This matches the behaviour pre-autoinstall.

Ref https://github.com/pulumi/pulumi/issues/14987
2024-01-26 13:41:10 +00:00
..
data Update github.com/cloudflare/circl to v1.3.7 (#15151) 2024-01-16 08:59:57 +00:00
cmd.spec.ts Allow disabling version validation when using a custom PulumiCommand isntance (#15242) 2024-01-26 13:41:10 +00:00
localWorkspace.spec.ts Install Pulumi CLI from Automation API (#14991) 2024-01-19 10:43:31 +00:00
remoteWorkspace.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
util.ts use uuid instead of random number for test suffix (#14827) 2023-12-12 13:09:27 +00:00