Skip to content

Encode used extension versions on serialized hugrs #2351

@aborgna-q

Description

@aborgna-q

HUGR extensions have a version field, but it gets ignored most of the time and newer extensions override older ones. This ends up causing obscure validation errors when an operation changes it signature.

We should store the list of extension IDs and their version used in a hugr/package, and error-out if there's semver-breaking mismatches.

Metadata

Metadata

Assignees

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