pulumi/pkg
Thomas Gummerer afcdb34918
add NewPluginSpec helper function (#17798)
We want to be able to get plugins from arbitrary git repositories. To do
this, we need to parse the URL we get passed, so we can resolve it
properly.

Introduce a new NewPluginSpec helper to do that, so we can use it
consistently throughout the codebase.

Also extend this method to recognize such plugin names, and deal with
them appropriately, setting the `PluginDownloadURL`, and specifying that
this is a remote plugin.

Note that we also need to mangle the names slightly, as `/` will create
new subfolders on the filesystem, which doesn't work well with our
current plugin detection mechanisms. Rather than trying to make that
work, replace them with `_`, which currently cannot be used in plugin
names, and thus are safe to re-use here.

This is the first step towards allowing users to specify git
repositories as plugins.
2025-01-02 11:38:44 +00:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend retry deletes in a bucket if they fail (#18059) 2024-12-18 09:38:13 +00:00
channel Move `sdk/go/common/channel` to `pkg` (#17895) 2024-12-02 16:25:50 +00:00
cmd/pulumi add NewPluginSpec helper function (#17798) 2025-01-02 11:38:44 +00:00
codegen Switch to pyproject.toml + uv (#18081) 2024-12-27 13:53:42 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
graph Support topologically sorting snapshots (#17403) 2024-10-01 08:45:35 +00:00
importer [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource Enable `pulumi:pulumi:getResource` to hydrate `Read` resources (#18070) 2024-12-22 20:13:43 +00:00
secrets Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
testing/integration Honor opts.PreviewCommandlineFlags in preview after refresh (#18063) 2024-12-17 19:04:27 +00:00
util Update golangci-lint (#17972) 2024-12-10 11:50:38 +00:00
workspace Implement plugin download cancellation (#17621) 2024-11-12 18:04:25 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Bump Java SDK version to v0.20+ (#18130) 2025-01-02 04:45:13 +00:00
go.sum Bump Java SDK version to v0.20+ (#18130) 2025-01-02 04:45:13 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.