Skip to content

feat(config): support OCI remote extends for devcontainer.json#190

Merged
skevetter merged 1 commit into
mainfrom
f39b/extends-oci
May 4, 2026
Merged

feat(config): support OCI remote extends for devcontainer.json#190
skevetter merged 1 commit into
mainfrom
f39b/extends-oci

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Adds OCI registry support to the extends property: refs like ghcr.io/org/devcontainer-base:1 are detected, pulled from the registry, and the first layer is extracted to find devcontainer.json
  • isOCIRef() distinguishes OCI refs from local paths (no .json/.jsonc suffix, contains /, not relative/absolute path)
  • resolveOCIExtends() handles pull with retry/backoff, layer extraction, JSONC parsing, and recursive extends resolution
  • Cycle detection uses the OCI ref string directly in the visited set
  • Includes integration test using go-containerregistry's in-memory registry + unit tests for ref detection, extraction, and cycle detection (15 new tests, 210 total in package)

Extends references that look like OCI image refs (e.g.
"ghcr.io/org/base:1") are now pulled from the registry, the first
layer is extracted as a gzipped tarball, and devcontainer.json is
parsed from it. Cycle detection uses the OCI ref string directly.
Includes retry with exponential backoff for transient registry errors.
@netlify

netlify Bot commented May 4, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 488416c
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/69f80e015227cb00082ae7c7

@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 4 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8e17fdde-9167-44e0-ac7a-14acd8e6210e

📥 Commits

Reviewing files that changed from the base of the PR and between da42f37 and 488416c.

📒 Files selected for processing (4)
  • pkg/devcontainer/config/extends.go
  • pkg/devcontainer/config/extends_oci.go
  • pkg/devcontainer/config/extends_oci_test.go
  • pkg/devcontainer/config/extends_test.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 16 minutes and 4 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@skevetter
skevetter enabled auto-merge (squash) May 4, 2026 03:09
@github-actions github-actions Bot added the size/l label May 4, 2026
@skevetter
skevetter merged commit 8e1e7dd into main May 4, 2026
95 of 96 checks passed
@skevetter
skevetter deleted the f39b/extends-oci branch May 4, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant