pulumi/sdk/go/common/workspace
Julien 1cdd2315de
Don't search upwards for policy packs when determining required plugins (#16865)
We don't need to search upwards for PolicyPack files, we already know
that there aren't any since we don't recurse into policy packs. The
directory traversal is plenty fast on Linux, however it is much slower
on Windows. Node modules often have fairly wide and deep directory
structures, so this can considerably slow down any Pulumi operation that
runs `GetRequiredPlugins`.

Fixes https://github.com/pulumi/pulumi/issues/16863

On an `was-typescript` example, we can see the impact with
`Measure-Command {start-process pulumi -argumentlist "about" -Wait}`,
which goes from 25 seconds to 2 seconds on an Azure Windows VM.
2024-08-02 11:49:16 +00:00
..
config.go Lift context parameter for ApplyProjectConfig (#16012) 2024-04-22 06:37:34 +00:00
creds.go Fix panic in whoami (#14108) 2023-10-06 16:56:36 +00:00
creds_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
loaders.go New deployment settings wizards and environment variables management comands (#16564) 2024-07-03 20:24:26 +00:00
loaders_test.go ignore unexpected types instead of erroring out (#14149) 2023-10-11 16:39:16 +00:00
paths.go Don't search upwards for policy packs when determining required plugins (#16865) 2024-08-02 11:49:16 +00:00
paths_test.go Don't search upwards for policy packs when determining required plugins (#16865) 2024-08-02 11:49:16 +00:00
plugins.go URL-based plugin source overrides via env var (#16648) 2024-07-26 10:37:09 +00:00
plugins_install_nodejs_test.go ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
plugins_install_python_test.go ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
plugins_install_test.go Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
plugins_test.go URL-based plugin source overrides via env var (#16648) 2024-07-26 10:37:09 +00:00
project.go Update pu/pu to support the new settings pull command + new deployment file (#16398) 2024-06-18 13:24:01 +00:00
project.json [sdk] add optional display name and tag fields to project templates (#14587) 2023-11-18 19:04:13 +00:00
project_test.go Better error messages for schema validation (#16097) 2024-06-14 09:03:22 +00:00
settings.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
templates.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
templates_test.go Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
templates_zip.go Adds Pulumi AI integrations with Pulumi New (#14685) 2023-12-20 22:08:09 +00:00
templates_zip_test.go Adds Pulumi AI integrations with Pulumi New (#14685) 2023-12-20 22:08:09 +00:00
workspace.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00