Skip to content

refactor: PackageInfo interface - #320

Open
upils wants to merge 1 commit into
canonical:mainfrom
upils:info-interface
Open

refactor: PackageInfo interface#320
upils wants to merge 1 commit into
canonical:mainfrom
upils:info-interface

Conversation

@upils

@upils upils commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator
  • Have you signed the CLA?

Introduce a manifestutil.PackageInfo interface so the manifest can be built from any package source without manifestutil depending on archive. archive.PackageInfo keeps its apt-native fields and gains Pkg-prefixed accessors to satisfy the interface; validatePackage now rejects non-SHA256 digests, with a TODO marking recording store digests as future work. slicer passes package infos to the manifest through the interface rather than the concrete *archive.PackageInfo. This prepares fetching and recording of store bins without changing current behavior.

⚠️ This is an implementation competing with #316. Only one approach should be adopted and the other one discarded.

@upils upils added the Simple Nice for a quick look on a minute or two label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Simple Nice for a quick look on a minute or two

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant