adamant-father-26302
01/31/2023, 5:25 PMambitious-alligator-62127
01/31/2023, 5:31 PMechoing-dinner-19531
01/31/2023, 6:04 PMadamant-father-26302
01/31/2023, 6:04 PM⯠cat go.mod|grep kubernetes
<http://github.com/pulumi/pulumi-kubernetes/sdk/v3|github.com/pulumi/pulumi-kubernetes/sdk/v3> v3.22.1
⯠pulumi plugin ls|grep kubernetes
kubernetes resource 3.19.2 78 MB 8 months ago 45 minutes ago
kubernetes resource 3.19.0 77 MB 8 months ago 45 minutes ago
kubernetes resource 3.18.2 77 MB 9 months ago 45 minutes ago
kubernetes resource 3.17.0 77 MB 10 months ago 45 minutes ago
it seems to skew hereechoing-dinner-19531
01/31/2023, 6:05 PMadamant-father-26302
01/31/2023, 6:07 PMechoing-dinner-19531
01/31/2023, 6:08 PMadamant-father-26302
01/31/2023, 6:08 PMechoing-dinner-19531
01/31/2023, 6:09 PMadamant-father-26302
01/31/2023, 6:09 PMresource plugin kubernetes is expected to have version >=3.22.2, but has 3.22.1; the wrong version may be on your path, or this may be a bug in the plugin
isnt it weird that it says i have 3.22.1 when pulumi plugin ls
say i dont have any versions higher than 3.19.2 ?echoing-dinner-19531
01/31/2023, 9:36 PMwhich pulumi-resource-kubernetes
does that return anything? Because it shouldn't!adamant-father-26302
02/01/2023, 10:19 AMpulumi-bin
package in nixpkgs comes with a lot of pulumi-plugins in the binary directorypulumi
without -bin
(built from source instead of upstream binary) does not have thatechoing-dinner-19531
02/01/2023, 10:21 AMadamant-father-26302
02/01/2023, 10:22 AM-bin
package, and got a
error: failed to load language plugin go: Could not automatically download and install language plugin 'pulumi-language-go', install the plugin using `pulumi plugin install language go`.
Underlying error: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-go/releases/latest>.
error instead šechoing-dinner-19531
02/01/2023, 10:23 AMadamant-father-26302
02/01/2023, 10:24 AMpulumi-bin**
package, and try hide most of the plugins (except the special ones)(pkgs.pulumi-bin.overrideAttrs (old:
{
postUnpack = ""; # override this phase which tries to move all the pulumi plugins we have filtered out from srcs
# filter out all srcs refering to plugins.
srcs = builtins.filter (src: !(nixpkgs.lib.strings.hasInfix "<http://api.pulumi.com/releases/plugins/pulumi-resource-|api.pulumi.com/releases/plugins/pulumi-resource->" src.url)) old.srcs;
}))
seems to work, to filter out all? the plugins, now it will try download plugins itself, and output from its binary directory has a lot less now:
at 14:54:49 ⯠ls /nix/store/mhg6f5y2rq9addw2wgidffmjgbl8vrmy-pulumi-3.53.1/bin/
ļ pulumi ļ pulumi-language-dotnet ļ pulumi-language-nodejs ļ pulumi-language-yaml ļ pulumi-watch
ļ pulumi-analyzer-policy ļ pulumi-language-go ļ pulumi-language-python ļ pulumi-resource-pulumi-nodejs
ļ pulumi-analyzer-policy-python ļ pulumi-language-java ļ pulumi-language-python-exec ļ pulumi-resource-pulumi-python
echoing-dinner-19531
02/01/2023, 3:22 PM```pulimi will look for it in
your PATH```It will but it can only load one plugin off path, and it has to assume it's the right version. If that package wants to pre-pack binaries it should still be putting them into ~/.pulumi/plugins not just on path.
adamant-father-26302
02/01/2023, 3:24 PMpulumi-language-go
aswell?echoing-dinner-19531
02/01/2023, 3:27 PM~/.pulumi/plugins/language-go/pulumi-language-go
would still work, but it's not how we package them for other systems.adamant-father-26302
02/01/2023, 3:32 PMpulumi
package (which builds pulumi from source) that doesn't wrap any plugins with it, running that together with pulumi-language-go
, both will then be in PATH
and then cross fingers that plugins are statically built.
working now on a package for pulumi-language-go
https://github.com/afreakk/nixpkgs/commit/74f6fc38e09b024d8d9a0377b4022c614d0466fbechoing-dinner-19531
02/01/2023, 3:37 PMadamant-father-26302
02/01/2023, 3:38 PM