Skip to content

feat(sdk/go): local OCI bundle via WithRootfsPath#443

Merged
DorianZheng merged 1 commit into
boxlite-ai:mainfrom
GatewayJ:sdk/go-local-oci-rootfs
Apr 20, 2026
Merged

feat(sdk/go): local OCI bundle via WithRootfsPath#443
DorianZheng merged 1 commit into
boxlite-ai:mainfrom
GatewayJ:sdk/go-local-oci-rootfs

Conversation

@GatewayJ

Copy link
Copy Markdown
Contributor

Summary

  • Add WithRootfsPath so Go callers can pass a local OCI image layout directory, wiring the same JSON shape as Rust RootfsSpec::RootfsPath.
  • If the path exists and is a directory, that path is used and the Create image argument is ignored; if the path is missing or not a directory, fall back to the registry image string.

Test plan

  • go build in sdks/go (with CGO_CFLAGS pointing at sdks/c/include)
  • Unit tests in boxlite_test.go for local path, precedence over image, fallback, and errors

Made with Cursor

Expose RootfsSpec::RootfsPath in box create JSON. When the path exists as
a directory, use the local OCI layout and ignore the image argument;
otherwise fall back to the registry image reference.

Made-with: Cursor
@GatewayJ GatewayJ force-pushed the sdk/go-local-oci-rootfs branch from 7639c4a to 32fd623 Compare April 19, 2026 14:59
@DorianZheng DorianZheng merged commit 40770e8 into boxlite-ai:main Apr 20, 2026
17 checks passed
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.

2 participants