FS#72394 - [pulumi] lacks files: pulumi-resource-pulumi-nodejs & pulumi-resource-pulumi-python

Attached to Project: Arch Linux
Opened by Arthur Woimbée (awoimbee) - Monday, 11 October 2021, 17:24 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Rebischke (Shibumi)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

This package is missing 2 files compared to the .tar.gz we can download from pulumi: `pulumi-resource-pulumi-nodejs` & `pulumi-resource-pulumi-python`.
Using pulumi on a nodejs project gives (example with the pulumi-postgres provider):

```
error: could not load plugin for pulumi-nodejs provider 'urn:pulumi:[redacted]::postgres::pulumi:providers:pulumi-nodejs::[redacted]` no resource plugin 'pulumi-nodejs' found in the workspace or on your $PATH
```

This issue is old, up until now I used pulumi-bin from AUR, but it's now gone.

Additional info:
* package version(s): all up until the latest one (3.14.0-1)

Steps to circumvent the bug:
- go to https://www.pulumi.com/docs/get-started/install/
- download the latest version as .tar.gz (https://get.pulumi.com/releases/sdk/pulumi-v3.14.0-linux-x64.tar.gz)
- extract `pulumi-resource-pulumi-nodejs` & `pulumi-resource-pulumi-python` to /usr/bin/
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:17 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/pulumi/issues/1
Comment by Christian Rebischke (Shibumi) - Wednesday, 10 November 2021, 23:21 GMT
patches are welcome :)
Comment by Albert Mikaelyan (Tahvok) - Sunday, 09 October 2022, 21:38 GMT
Please see the attached patch
   patch (0.6 KiB)
Comment by Christian Heusel (gromit) - Sunday, 03 September 2023, 15:47 GMT
The patch works but for the resulting applications to work we would need additional deps (which are AFAIK not in the repos right now):

$ pulumi-resource-pulumi-nodejs
node:internal/modules/cjs/loader:1080
throw err;
^

Error: Cannot find module '@pulumi/pulumi/cmd/dynamic-provider'
Require stack:
- /tmp/tmp.7T7yoWlo2F/pulumi/[eval]
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Function.resolve (node:internal/modules/cjs/helpers:127:19)
at [eval]:1:21
at Script.runInThisContext (node:vm:123:12)
at Object.runInThisContext (node:vm:299:38)
at node:internal/process/execution:79:19
at [eval]-wrapper:6:22
at evalScript (node:internal/process/execution:78:60)
at node:internal/main/eval_string:28:3 {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/tmp/tmp.7T7yoWlo2F/pulumi/[eval]' ]
}

Node.js v18.17.1
$ pulumi-resource-pulumi-python
/usr/bin/python3: Error while finding module specification for 'pulumi.dynamic' (ModuleNotFoundError: No module named 'pulumi')
Comment by Christian Heusel (gromit) - Thursday, 07 September 2023, 14:28 GMT
Also requested in  FS#79604  (duplicate)
Comment by arno (arenevier) - Tuesday, 26 September 2023, 18:27 GMT
Christian: those commands are supposed to be called from inside a directory containing a pulumi project. I tested the patch, and it works fine when ran inside a pulumi project. It's missing the analyzers binary though, and pulumi was failing with the following:

```
error: could not start policy pack "aws-tags-policies" because the built-in analyzer plugin that runs policy plugins is missing. This might occur when the plugin directory is not on your $PATH, or when the installed version of the Pulumi SDK does not support resource policies
```

I am attaching a new patch that fixes the issue by installing the analyzer binaries.
   patch (0.8 KiB)

Loading...