Skip to content

Structured dependencies in pkgx.yaml #22

Open

Description

@dudicoco

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

dependencies:
  python@3.10 node@16.20.1
env:
  FOO: bar

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

dependencies:
- python@3.10
- node@16.20.1
env:
  FOO: bar

Activity

  1. jhheider commented on Nov 26, 2024

    @jhheider
    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
  2. dudicoco commented on Nov 26, 2024

    @dudicoco
    Author

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

  3. jhheider commented on Nov 26, 2024

    @jhheider
    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.

  4. mxcl commented on Nov 27, 2024

    @mxcl
    Contributor

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

  5. transferred this issue frompkgxdev/pkgxon Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions