Skip to content

feat: common interface for archive/store#20

Closed
upils wants to merge 5 commits into
mainfrom
slicer-source-interface
Closed

feat: common interface for archive/store#20
upils wants to merge 5 commits into
mainfrom
slicer-source-interface

Conversation

@upils

@upils upils commented Jul 7, 2026

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

This branch introduces a pkgSource struct in the slicer that abstracts package fetching via a closure, replacing the previous direct map[string]archive.Archive lookup. This is needed because packages can now come from either archives or stores, and the slicer's Run function must handle both in a generic way. The closure captures the resolved archive or a store error (until the store is implemented) at resolution time, keeping Run source-agnostic. Store packages are not yet fetchable and return a clear "not implemented" error, with a test covering this path.

This lays the groundwork for implementing store fetching without further changes to the slicer's core logic.

@upils upils force-pushed the slicer-source-interface branch 2 times, most recently from 1b58255 to 052b837 Compare July 10, 2026 12:32
upils added 3 commits July 10, 2026 15:58
Signed-off-by: Paul Mars <paul.mars@canonical.com>
Signed-off-by: Paul Mars <paul.mars@canonical.com>
Signed-off-by: Paul Mars <paul.mars@canonical.com>
@upils upils force-pushed the slicer-source-interface branch from 052b837 to a2e22f2 Compare July 10, 2026 13:58
@upils upils changed the base branch from bin-slices to main July 10, 2026 13:59
upils added 2 commits July 15, 2026 15:52
Signed-off-by: Paul Mars <paul.mars@canonical.com>
Signed-off-by: Paul Mars <paul.mars@canonical.com>
@upils

upils commented Jul 15, 2026

Copy link
Copy Markdown
Owner Author

Closed in favor of canonical#311

@upils upils closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant