Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured dependencies in pkgx.yaml #22

Open
dudicoco opened this issue Nov 26, 2024 · 4 comments
Open

Structured dependencies in pkgx.yaml #22

dudicoco opened this issue Nov 26, 2024 · 4 comments

Comments

@dudicoco
Copy link

Currently the dependencies value in pkgx.yaml is just a string:

dependencies:
  [email protected] [email protected]
env:
  FOO: bar

I suggest making it an array so it's more structured and robust:

dependencies:
- [email protected]
- [email protected]
env:
  FOO: bar
@jhheider
Copy link
Contributor

pkgx supports a yaml object (as well as array of strings):

dependencies:
  python.org: ~3.10
  nodejs.org: ^16.20.1
env:
  FOO: bar

@dudicoco
Copy link
Author

Thanks @jhheider, definitely should be in the docs :)

@jhheider
Copy link
Contributor

Yeah, the docs refer to the yaml frontmatter, but that feature, specifically reading it from the readme, has been removed I believe, so the documentation likely went with it. I believe the three methods described here are the available methods.

@mxcl
Copy link
Member

mxcl commented Nov 27, 2024

Leaving open until we (or anyone!) update(s) the docs

@mxcl mxcl transferred this issue from pkgxdev/pkgx Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants