Skip to content

pkg: externalize host default assets#5324

Open
fpolica91 wants to merge 1 commit into
lima-vm:masterfrom
fpolica91:agent/externalize-host-defaults
Open

pkg: externalize host default assets#5324
fpolica91 wants to merge 1 commit into
lima-vm:masterfrom
fpolica91:agent/externalize-host-defaults

Conversation

@fpolica91

@fpolica91 fpolica91 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • move the containerd and network defaults to share/lima/defaults
  • load host resources from installed share directories with a source-tree fallback for tests and local builds
  • package and validate the external resources in release artifacts
  • keep driver-specific and guest-agent assets embedded

Why

This starts #5295 with two host-only assets that have isolated consumers. The remaining CI-data, autostart, driver, and guest-agent embeds are intentionally unchanged so maintainers can review the resource-loading and packaging approach before expanding the scope.

Testing

  • go test ./...
  • go test -trimpath ./pkg/usrlocal ./pkg/limayaml ./pkg/networks
  • make golangci-lint
  • make yamllint
  • make ls-lint
  • make limactl
  • Linux and Windows cross-builds
  • CLI runtime smoke tests for network and containerd defaults
  • positive and negative artifact validation fixtures

Related to #5295.

Signed-off-by: fpolica91 <fabriciopolicarpo0@gmail.com>
@fpolica91
fpolica91 marked this pull request as ready for review July 23, 2026 22:36
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