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 to keep a clear separation of concerns: the manifest is built from whatever a package source reports, not from archive-specific data. As a result, manifestutil no longer depends 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. 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