Skip to content

Make distribution tool aware of dependencies #1593

@jsoriano

Description

@jsoriano

Distribution tool should be able to automatically include required packages, so users of distributions don't need to explicitly include dependencies that other packages require.

For example, if a package with the following requires section is included, then the generated distribution should include the latest apache_otel version that matches ^1.0.0, filelog_otel 1.0.0 and apache_input_otel 1.0.0.

requires:
  content:
    - package: apache_otel
      version: "^1.0.0"
  input:
    - package: filelog_otel
      version: "1.0.0"
    - package: apache_input_otel
      version: "1.0.0"

It should be possible to configure this behavior, with the following defaults:

dependencies:
  types: [input, content]
  constraint_match: latest
  • types is the type of required packages to download, as only content packages are required in runtime, a user could set types: [content] to avoid downloading required input packages.
  • constraint_match selects, for constraints, what version should be selected, can be latest for the latest package that matches, and oldest for the oldest package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions