Skip to content

Idea: Define a new dbc package format #510

Open

Description

@eitsupi

Background

During the Packslip/lockfile v2 PoC (#497), I extended dbc to support resolving and installing driver artifacts from different sources.

This work highlighted some questions about the current MANIFEST-based package format:

  • Some package-related metadata is currently not represented in the package format itself and needs to be supplied by external context (registry metadata, filenames, etc.).
  • The current format is closely tied to ADBC Driver Manifest, which is primarily designed for runtime driver loading rather than package management.

For example, the Iceberg package used in #497 contains the following MANIFEST:

name = "ADBC Iceberg Driver"
description = "An ADBC driver for Apache Iceberg tables"
publisher = "tokoko"
version = "0.1.2"

[ADBC]
version = "1.1.0"

[Driver]
entrypoint = "AdbcDriverIcebergInit"

[Files]
driver = "libadbc_driver_iceberg.so"

This contains much of the runtime/package information, but other information used by dbc in the PoC, such as the canonical driver ID and target platform, came from external context such as Packslip metadata, registry metadata, or filenames.

This raises the question of whether the current MANIFEST format should continue to evolve as the canonical dbc package format, or whether dbc should define a separate package format in the future.

Examples from other ecosystems

Many package ecosystems separate package contents from external indexes or registries.

Examples:

  • Cargo: .crate archives contain Cargo.toml with package identity, version, dependencies, etc. The registry index is used for discovery and dependency resolution.
  • Python wheels: wheel files contain METADATA, WHEEL, and RECORD describing the package contents.
  • Conda: packages contain metadata under info/, while repository indexes are generated for package discovery and solving.
  • OCI artifacts: artifact manifests/config blobs describe the artifact itself, while registries provide storage and distribution.
  • mise/aqua: registries describe how artifacts are discovered and downloaded, providing an example of keeping source resolution separate from artifact/package semantics.

Based on these examples, one possible direction is to consider a dbc package format where package-level information and payload layout are described by the artifact itself, while source/distribution metadata (registry information, Packslip metadata, artifact locations, etc.) remains separate.

The exact boundary between package metadata and external metadata needs further discussion.

Backward compatibility

The existing MANIFEST format will need to remain supported for existing packages.

However, simply extending MANIFEST may not be ideal because it mixes ADBC runtime manifest concepts with dbc package concepts.

Possible approaches include:

  • Continue extending MANIFEST while keeping compatibility with existing packages.
  • Introduce a new dbc-specific package format alongside MANIFEST, allowing existing packages and future packages to follow different models.

The migration strategy and long-term relationship between the formats need further discussion.

Related requirements

Separately from the Packslip/lockfile v2 work, requirements such as supporting additional driver-owned resource files (#509) have also come up.
If a new package format is introduced, it may provide a natural place to define such package-level capabilities instead of continuing to extend the legacy format.

Activity

  1. eitsupi commented on Nov 21, 2026

    @eitsupi
    MemberAuthor

    #595 (comment)
    As pointed out in this comment, we are currently only signing one shared library.
    If the dbc package is to allow bundling multiple files, it may be worth considering a new signing mechanism (e.g., signing the file checksum list).

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