pulumi/sdk/nodejs/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
..
cmd.ts Allow disabling version validation when using a custom PulumiCommand isntance (#15242) 2024-01-26 13:41:10 +00:00
config.ts Removing x namespace from go/python/nodejs automation packages (#6518) 2021-04-14 19:32:18 +01:00
errors.ts Apply autoformat 2023-04-28 18:27:10 -04:00
events.ts [apitype] Add RetainOnDelete to StepEventStateMetadata 2023-06-26 12:50:39 -07:00
index.ts [auto/nodejs] Support for remote operations 2022-10-28 12:56:30 -07:00
localWorkspace.ts Install Pulumi CLI from Automation API (#14991) 2024-01-19 10:43:31 +00:00
minimumVersion.ts [sdk/nodejs] Mark internal APIs `@internal` to filter from SDK docs 2022-09-20 11:54:06 -07:00
projectSettings.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
remoteStack.ts fix some links 2023-05-19 19:39:26 -07:00
remoteWorkspace.ts Apply autoformat 2023-04-28 18:27:10 -04:00
server.ts Update node sdk to use typescript definitions for grpc and protobufs. (#14415) 2023-12-04 15:22:44 +00:00
stack.ts Install Pulumi CLI from Automation API (#14991) 2024-01-19 10:43:31 +00:00
stackSettings.ts Apply autoformat 2023-04-28 18:27:10 -04:00
tag.ts Add stack tag support for nodejs automation api sdk 2022-12-14 22:27:56 -05:00
workspace.ts Install Pulumi CLI from Automation API (#14991) 2024-01-19 10:43:31 +00:00