Skip to content

feat(incusos): download CDN images through cache#12

Merged
jmgilman merged 1 commit intomasterfrom
session-004/download-image
May 5, 2026
Merged

feat(incusos): download CDN images through cache#12
jmgilman merged 1 commit intomasterfrom
session-004/download-image

Conversation

@jmgilman
Copy link
Copy Markdown
Contributor

@jmgilman jmgilman commented May 5, 2026

Summary

  • Make the IncusOS CDN client implement image downloading through an injected cache.Service.
  • Remove caller-provided destination paths from the IncusOS downloader port so source images resolve to immutable cache paths.
  • Add Mockery config and a generated cache.Service mock for provider tests.

Validation

  • mockery --config .mockery.yml
  • go mod tidy
  • go test -count=1 ./internal/cache ./internal/providers/incusos ./internal/providers/incusos/cdn
  • moon run root:check --summary minimal

Notes

This does not wire image downloads into Provider.Build yet; build/cache wiring remains the next slice.

Inject the shared cache service into the IncusOS CDN adapter so resolved source assets download into the content-addressed cache instead of a caller-provided destination path.

Add Mockery configuration and a generated cache service mock for provider tests.
@jmgilman jmgilman marked this pull request as ready for review May 5, 2026 03:32
@jmgilman jmgilman merged commit f3a7e10 into master May 5, 2026
2 checks passed
@jmgilman jmgilman deleted the session-004/download-image branch May 5, 2026 03:32
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