pkgxdev / pkgx

run anything
https://pkgx.sh
Apache License 2.0
8.95k stars 1.36k forks source link

`pkgx install` does not expand programs templates #1005

Open felipecrs opened 4 months ago

felipecrs commented 4 months ago
pkgx install python@3.11

Should install python3 and python3.11, but in fact it installs only python.

Refs https://github.com/pkgxdev/pkgx/pull/1000

dosubot[bot] commented 4 months ago

It seems like the issue with pkgx install not expanding program templates correctly, specifically for versioned packages like python@3.11, might be related to the current implementation skipping templates that contain placeholders. This is due to the lack of version-specific handling in the code, which results in only python being installed instead of the expected python3 and python3.11.

The pull request you referenced might have introduced changes affecting this behavior, but without more details on the changes or error logs when running the command, it's challenging to pinpoint the exact cause or propose a direct solution.

To move forward, sharing more details about the pull request's changes or any specific errors encountered could be very helpful in diagnosing and addressing the issue more effectively.

#### Details **Sources** - [src/modes/x.ts](https://github.com/pkgxdev/pkgx/blob/main/src/modes/x.ts) - [src/modes/install.ts](https://github.com/pkgxdev/pkgx/blob/main/src/modes/install.ts) - [src/err-handler.ts](https://github.com/pkgxdev/pkgx/blob/main/src/err-handler.ts)
**About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.