pulumi/sdk/go/common
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
..
apitype Move EscEnvironmentMetadata to apitype (#17720) 2024-11-08 14:32:13 +00:00
constant Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diag allow InputPropertyErrors from Calls (#17567) 2024-11-07 09:56:04 +00:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env Enable Copilot link by default (#17293) 2024-09-20 01:15:16 +00:00
promise Add tests to sdk/go/common/promise for coverage (#17197) 2024-09-08 21:07:08 +00:00
resource Fix nil access violation in plugin.Close (#18090) 2024-12-28 13:01:04 +00:00
slice Nit: Use slice.Prealloc in slice.Map and slice.MapError (#17631) 2024-10-29 15:35:55 +00:00
tail fix race condition in tail better (#18066) 2024-12-18 12:10:53 +00:00
testing Move `sdk/go/common/tools/path` to `pkg` (#17898) 2024-12-02 17:13:30 +00:00
tokens Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
util unflake unhandledInterrupt test (#18075) 2024-12-19 11:59:02 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace add NewPluginSpec helper function (#17798) 2025-01-02 11:38:44 +00:00