Repository navigation
Fallback for version resolution over unauthenticated git for feature installation. - #1744
Merged
Kaniska (v-Kaniska244) merged 11 commits intoNov 10, 2026
Conversation
Kaniska (v-Kaniska244)
marked this pull request as ready for review
September 22, 2026 07:33
…fallback # Conflicts: # src/go/devcontainer-feature.json # src/go/install.sh
Abdurrahmaan Iqbal (abdurriq)
previously approved these changes
Nov 4, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The resolver incorrectly treats Go minor-version requests such as 1.24 as exact versions, producing invalid download URLs and breaking the previous-minor retry.
5 open issues
What changed in this PR
This PR addresses #1726 by adding shared version resolution across 14 Dev Container Features, reducing installation failures when unauthenticated Git tag lookups are unavailable.
Changes:
- Adds exact-version bypass, alternate discovery sources, installer-owned fallback versions, and diagnostic messages.
- Integrates the resolver into affected installers and bumps Feature metadata versions.
- Adds resolver synchronization, a deterministic test matrix, and focused CI checks.
| File | Description |
|---|---|
test/_global/version-resolution/test.sh |
Tests resolution paths and installer wiring. |
test/_global/version-resolution/cases.sh |
Defines per-tool resolution cases. |
src/terraform/scripts/version-resolution.sh |
Packages the shared resolver. |
src/terraform/install.sh |
Adds fallbacks for Terraform and supporting tools. |
src/terraform/devcontainer-feature.json |
Bumps the patch version. |
src/rust/scripts/version-resolution.sh |
Packages the shared resolver. |
src/rust/install.sh |
Adds Rust version fallback. |
src/rust/devcontainer-feature.json |
Bumps the patch version. |
src/python/scripts/version-resolution.sh |
Packages the shared resolver. |
src/python/install.sh |
Adds Python, OpenSSL, and Cosign fallbacks. |
src/python/devcontainer-feature.json |
Bumps the patch version. |
src/powershell/scripts/version-resolution.sh |
Packages the shared resolver. |
src/powershell/install.sh |
Adds stable and preview fallbacks. |
src/powershell/devcontainer-feature.json |
Bumps the patch version. |
src/php/scripts/version-resolution.sh |
Packages the shared resolver. |
src/php/install.sh |
Adds PHP and Xdebug fallbacks. |
src/php/devcontainer-feature.json |
Bumps the patch version. |
src/node/scripts/version-resolution.sh |
Packages the shared resolver. |
src/node/install.sh |
Adds NVM version fallback. |
src/nix/scripts/version-resolution.sh |
Packages the shared resolver. |
src/nix/install.sh |
Adds Nix version fallback. |
src/nix/devcontainer-feature.json |
Bumps the patch version. |
src/kubectl-helm-minikube/scripts/version-resolution.sh |
Packages the shared resolver. |
src/kubectl-helm-minikube/install.sh |
Adds fallbacks to tool resolution calls. |
src/kubectl-helm-minikube/devcontainer-feature.json |
Bumps the patch version. |
src/go/scripts/version-resolution.sh |
Packages the shared resolver. |
src/go/install.sh |
Adds release-index discovery and a fallback pin. |
src/github-cli/scripts/version-resolution.sh |
Packages the shared resolver. |
src/github-cli/install.sh |
Adds GitHub CLI version fallback. |
src/git-lfs/scripts/version-resolution.sh |
Packages the shared resolver. |
src/git-lfs/install.sh |
Adds Git LFS version fallback. |
src/git-lfs/devcontainer-feature.json |
Bumps the patch version. |
src/docker-outside-of-docker/scripts/version-resolution.sh |
Packages the shared resolver. |
src/docker-outside-of-docker/install.sh |
Adds Compose and compose-switch fallbacks. |
src/docker-outside-of-docker/devcontainer-feature.json |
Bumps the patch version. |
src/docker-in-docker/scripts/version-resolution.sh |
Packages the shared resolver. |
src/docker-in-docker/install.sh |
Adds Compose, compose-switch, and buildx fallbacks. |
src/copilot-cli/scripts/version-resolution.sh |
Packages the shared resolver. |
src/copilot-cli/install.sh |
Integrates prerelease resolution and preserves auto-update intent. |
src/copilot-cli/devcontainer-feature.json |
Bumps the patch version. |
scripts/version-resolution.sh |
Defines canonical resolution and fallback behavior. |
scripts/sync-version-resolution.sh |
Distributes the resolver and checks for drift. |
.github/workflows/version-resolution.yaml |
Runs synchronization, fallback tests, and ShellCheck. |
Review effort: Balanced
Kaniska (v-Kaniska244)
requested a review
from Abdurrahmaan Iqbal (abdurriq)
November 10, 2026 06:16
Abdurrahmaan Iqbal (abdurriq)
approved these changes
Nov 10, 2026
Kaniska (v-Kaniska244)
merged commit Nov 10, 2026
fbb4442
into
devcontainers:main
301 of 305 checks passed
Dylan (dylanratcliffe)
pushed a commit
to overmindtech/cli
that referenced
this pull request
Nov 17, 2026
Mechanical dependency bumps only. These do not change functionality. ## Ready now (scan) - cloud.google.com/go/dataplex v1.38.1 -> v1.39.0 - cloud.google.com/go/kms v1.36.1 -> v1.37.0 - cloud.google.com/go/run v1.24.1 -> v1.25.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v4 v4.0.0 -> v4.1.0 - github.com/auth0/go-auth0/v3 v3.11.0 -> v3.12.0 - github.com/aws/aws-sdk-go-v2 v1.47.3 -> v1.48.0 - github.com/aws/aws-sdk-go-v2/config v1.33.9 -> v1.33.18 - github.com/aws/aws-sdk-go-v2/credentials v1.20.9 -> v1.21.0 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.3 -> v1.20.9 - github.com/aws/aws-sdk-go-v2/service/apigateway v1.52.1 -> v1.52.9 - github.com/aws/aws-sdk-go-v2/service/autoscaling v1.78.4 -> v1.82.0 - github.com/aws/aws-sdk-go-v2/service/cloudfront v1.75.0 -> v1.75.6 - github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.73.3 -> v1.76.0 - github.com/aws/aws-sdk-go-v2/service/directconnect v1.55.1 -> v1.56.0 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.70.3 -> v1.74.0 - github.com/aws/aws-sdk-go-v2/service/ecs v1.100.3 -> v1.105.1 - github.com/aws/aws-sdk-go-v2/service/efs v1.49.4 -> v1.51.6 - github.com/aws/aws-sdk-go-v2/service/eks v1.104.1 -> v1.105.6 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.41.4 -> v1.42.0 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.4 -> v1.64.0 - github.com/aws/aws-sdk-go-v2/service/kms v1.61.4 -> v1.62.6 - github.com/aws/aws-sdk-go-v2/service/networkmanager v1.50.4 -> v1.51.6 - github.com/aws/aws-sdk-go-v2/service/rds v1.130.3 -> v1.133.0 - github.com/aws/aws-sdk-go-v2/service/route53 v1.70.4 -> v1.71.0 - github.com/aws/aws-sdk-go-v2/service/s3 v1.114.3 -> v1.114.10 - github.com/aws/aws-sdk-go-v2/service/sesv2 v1.79.1 -> v1.79.9 - github.com/aws/aws-sdk-go-v2/service/sns v1.47.5 -> v1.48.0 - github.com/aws/aws-sdk-go-v2/service/sqs v1.52.4 -> v1.53.0 - github.com/aws/aws-sdk-go-v2/service/sts v1.51.4 -> v1.52.0 - github.com/aws/smithy-go v1.28.8 -> v1.28.9 - github.com/jackc/pgx/v5 v5.12.0 -> v5.13.0 - github.com/nats-io/jwt/v2 v2.8.2 -> v2.8.3 - github.com/nats-io/nats-server/v2 v2.15.2 -> v2.15.3 - github.com/resend/resend-go/v4 v4.12.0 -> v4.12.1 - github.com/zclconf/go-cty v1.19.0 -> v1.20.0 - gopkg.in/ini.v1 v1.67.3 -> v1.68.0 Modules raised by minimum version selection: - github.com/antithesishq/antithesis-sdk-go v0.8.0-default-no-op -> v0.9.0-default-no-op - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.22 -> v1.7.27 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.6 -> v1.5.12 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.6 -> v2.8.12 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.6 -> v1.5.12 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.21 -> v1.13.25 - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.7 -> v1.11.13 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.13.6 -> v1.13.12 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.6 -> v1.14.12 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.6 -> v1.20.12 - github.com/aws/aws-sdk-go-v2/service/signin v1.10.4 -> v1.13.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.38.4 -> v1.39.5 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.43.4 -> v1.44.5 - github.com/klauspost/compress v1.20.3 -> v1.20.4 - github.com/nats-io/nkeys v0.4.16 -> v0.4.17 - golang.org/x/oauth2 v0.37.0 -> v0.38.0 - golang.org/x/sys v0.49.0 -> v0.50.0 Left out: `cloud.google.com/go/compute` stays at v1.70.0. v1.75.0 removes `ReturnPartialSuccess` from the `AggregatedList*Request` types used in `sources/gcp/manual`, so the bump needs a code change. Left out: `github.com/openai/openai-go/v3` stays at v3.70.0. With v3.99.0, `TestCalculateBlastRadius` failed 2 of 3 runs (the model returned no affected resources), so the client bump will be evaluated separately from this mechanical batch. ## Devcontainer build fix `devcontainers/features#1744` made the go, terraform, github-cli and node feature `install.sh` scripts source helpers from a `scripts/` directory next to them, so piping them into bash has failed on `main` since 2026-11-13. `.cursor/devcontainer-build/Dockerfile` now extracts those four feature directories from the upstream tarball and runs each `install.sh` in place. ## Vulnerability fixes (High/Critical) - node 24.22.1 -> 24.22.3 (Critical CVE-2026-123864; High CVE-2026-123863, CVE-2026-123865, CVE-2026-123866, CVE-2026-123867, CVE-2026-123868, CVE-2026-123872, CVE-2026-123874, CVE-2026-123875, CVE-2026-123877, CVE-2026-126051) - `services/frontend/Dockerfile` (`node:24.22.3-alpine3.23`, both stages) - `services/frontend/Dockerfile.playwright` (`node:24.22.3-trixie-slim`) - Copied pins: `NODE_VERSION` in `plugins/private-evals/container/Dockerfile` and `.cursor/devcontainer-build/Dockerfile`, and `node-version` in the CI workflows under `.github/workflows/` and `plugins/.github/workflows/` ## Test plan - [x] `go build ./...` - [x] `go vet` on `sources/gcp`, `services/until-backend`, `go/` - [ ] CI green on this draft <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Wide Go client bumps (especially AWS and Auth0) and uniform Node runtime changes affect build, CI, and containers; risk is limited by mechanical version-only updates but warrants a green CI pass. > > **Overview** > This PR is primarily a **mechanical dependency refresh**: `go.mod` / `go.sum` pick up patch and minor releases across cloud clients (GCP, Azure Cosmos, AWS SDK v2), Auth0, `pgx`, NATS, Terraform’s `go-cty`, and related transitive modules, with no application code changes in the diff. > > **Node.js is pinned to 24.22.3** everywhere it was 24.22.1—CI `setup-node` jobs, frontend and Playwright Docker bases, private-evals and devcontainer `NODE_VERSION`—to address reported High/Critical Node CVEs. > > The **devcontainer image build** no longer pipes `install.sh` from GitHub; it downloads the devcontainers features tarball, extracts the go/terraform/github-cli/node feature trees, and runs each script in place so sibling `scripts/` helpers resolve correctly, then removes the temp tree after the node install. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 75e8c8ba3a691dbc26a58c69b19a27cb03240121. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor <cursoragent@cursor.com> GitOrigin-RevId: 128c73cec5fbe38f5c75049f491d1a898f7f648f
TP Honey (tphoney)
pushed a commit
to overmindtech/cli
that referenced
this pull request
Nov 17, 2026
Mechanical dependency bumps only. These do not change functionality. ## Ready now (scan) - cloud.google.com/go/dataplex v1.38.1 -> v1.39.0 - cloud.google.com/go/kms v1.36.1 -> v1.37.0 - cloud.google.com/go/run v1.24.1 -> v1.25.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v4 v4.0.0 -> v4.1.0 - github.com/auth0/go-auth0/v3 v3.11.0 -> v3.12.0 - github.com/aws/aws-sdk-go-v2 v1.47.3 -> v1.48.0 - github.com/aws/aws-sdk-go-v2/config v1.33.9 -> v1.33.18 - github.com/aws/aws-sdk-go-v2/credentials v1.20.9 -> v1.21.0 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.3 -> v1.20.9 - github.com/aws/aws-sdk-go-v2/service/apigateway v1.52.1 -> v1.52.9 - github.com/aws/aws-sdk-go-v2/service/autoscaling v1.78.4 -> v1.82.0 - github.com/aws/aws-sdk-go-v2/service/cloudfront v1.75.0 -> v1.75.6 - github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.73.3 -> v1.76.0 - github.com/aws/aws-sdk-go-v2/service/directconnect v1.55.1 -> v1.56.0 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.70.3 -> v1.74.0 - github.com/aws/aws-sdk-go-v2/service/ecs v1.100.3 -> v1.105.1 - github.com/aws/aws-sdk-go-v2/service/efs v1.49.4 -> v1.51.6 - github.com/aws/aws-sdk-go-v2/service/eks v1.104.1 -> v1.105.6 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.41.4 -> v1.42.0 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.4 -> v1.64.0 - github.com/aws/aws-sdk-go-v2/service/kms v1.61.4 -> v1.62.6 - github.com/aws/aws-sdk-go-v2/service/networkmanager v1.50.4 -> v1.51.6 - github.com/aws/aws-sdk-go-v2/service/rds v1.130.3 -> v1.133.0 - github.com/aws/aws-sdk-go-v2/service/route53 v1.70.4 -> v1.71.0 - github.com/aws/aws-sdk-go-v2/service/s3 v1.114.3 -> v1.114.10 - github.com/aws/aws-sdk-go-v2/service/sesv2 v1.79.1 -> v1.79.9 - github.com/aws/aws-sdk-go-v2/service/sns v1.47.5 -> v1.48.0 - github.com/aws/aws-sdk-go-v2/service/sqs v1.52.4 -> v1.53.0 - github.com/aws/aws-sdk-go-v2/service/sts v1.51.4 -> v1.52.0 - github.com/aws/smithy-go v1.28.8 -> v1.28.9 - github.com/jackc/pgx/v5 v5.12.0 -> v5.13.0 - github.com/nats-io/jwt/v2 v2.8.2 -> v2.8.3 - github.com/nats-io/nats-server/v2 v2.15.2 -> v2.15.3 - github.com/resend/resend-go/v4 v4.12.0 -> v4.12.1 - github.com/zclconf/go-cty v1.19.0 -> v1.20.0 - gopkg.in/ini.v1 v1.67.3 -> v1.68.0 Modules raised by minimum version selection: - github.com/antithesishq/antithesis-sdk-go v0.8.0-default-no-op -> v0.9.0-default-no-op - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.22 -> v1.7.27 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.6 -> v1.5.12 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.6 -> v2.8.12 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.6 -> v1.5.12 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.21 -> v1.13.25 - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.7 -> v1.11.13 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.13.6 -> v1.13.12 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.6 -> v1.14.12 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.6 -> v1.20.12 - github.com/aws/aws-sdk-go-v2/service/signin v1.10.4 -> v1.13.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.38.4 -> v1.39.5 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.43.4 -> v1.44.5 - github.com/klauspost/compress v1.20.3 -> v1.20.4 - github.com/nats-io/nkeys v0.4.16 -> v0.4.17 - golang.org/x/oauth2 v0.37.0 -> v0.38.0 - golang.org/x/sys v0.49.0 -> v0.50.0 Left out: `cloud.google.com/go/compute` stays at v1.70.0. v1.75.0 removes `ReturnPartialSuccess` from the `AggregatedList*Request` types used in `sources/gcp/manual`, so the bump needs a code change. Left out: `github.com/openai/openai-go/v3` stays at v3.70.0. With v3.99.0, `TestCalculateBlastRadius` failed 2 of 3 runs (the model returned no affected resources), so the client bump will be evaluated separately from this mechanical batch. ## Devcontainer build fix `devcontainers/features#1744` made the go, terraform, github-cli and node feature `install.sh` scripts source helpers from a `scripts/` directory next to them, so piping them into bash has failed on `main` since 2026-11-13. `.cursor/devcontainer-build/Dockerfile` now extracts those four feature directories from the upstream tarball and runs each `install.sh` in place. ## Vulnerability fixes (High/Critical) - node 24.22.1 -> 24.22.3 (Critical CVE-2026-123864; High CVE-2026-123863, CVE-2026-123865, CVE-2026-123866, CVE-2026-123867, CVE-2026-123868, CVE-2026-123872, CVE-2026-123874, CVE-2026-123875, CVE-2026-123877, CVE-2026-126051) - `services/frontend/Dockerfile` (`node:24.22.3-alpine3.23`, both stages) - `services/frontend/Dockerfile.playwright` (`node:24.22.3-trixie-slim`) - Copied pins: `NODE_VERSION` in `plugins/private-evals/container/Dockerfile` and `.cursor/devcontainer-build/Dockerfile`, and `node-version` in the CI workflows under `.github/workflows/` and `plugins/.github/workflows/` ## Test plan - [x] `go build ./...` - [x] `go vet` on `sources/gcp`, `services/until-backend`, `go/` - [ ] CI green on this draft <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Wide Go client bumps (especially AWS and Auth0) and uniform Node runtime changes affect build, CI, and containers; risk is limited by mechanical version-only updates but warrants a green CI pass. > > **Overview** > This PR is primarily a **mechanical dependency refresh**: `go.mod` / `go.sum` pick up patch and minor releases across cloud clients (GCP, Azure Cosmos, AWS SDK v2), Auth0, `pgx`, NATS, Terraform’s `go-cty`, and related transitive modules, with no application code changes in the diff. > > **Node.js is pinned to 24.22.3** everywhere it was 24.22.1—CI `setup-node` jobs, frontend and Playwright Docker bases, private-evals and devcontainer `NODE_VERSION`—to address reported High/Critical Node CVEs. > > The **devcontainer image build** no longer pipes `install.sh` from GitHub; it downloads the devcontainers features tarball, extracts the go/terraform/github-cli/node feature trees, and runs each script in place so sibling `scripts/` helpers resolve correctly, then removes the temp tree after the node install. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 75e8c8ba3a691dbc26a58c69b19a27cb03240121. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Cursor <cursoragent@cursor.com> GitOrigin-RevId: 128c73cec5fbe38f5c75049f491d1a898f7f648f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Closes #1726.
Several Features resolve partial or symbolic versions using unauthenticated
git ls-remoterequests. When those requests fail because of network issues,rate limiting, or GitHub availability, Feature installation currently fails
without another resolution path.
This PR introduces shared, resilient version-resolution behavior across 14
Features.
Changes
Adds a shared version resolver supporting this resolution order:
release index.
resolution remains unavailable.
Normalizes tag prefixes and supports:
latest,current,stable, andltspreviewandprereleaseKeeps fully qualified user versions independent of remote availability.
Emits warnings identifying failed and fallback resolution sources.
Defines each known-good version as a visible top-level
*_LAST_KNOWN_VERSIONvariable in its owning installer. The shared resolvercontains no repository-to-version catalog.
Adds a synchronization script for distributing the canonical resolver into
each Feature package and checking for drift.
Affected Features
Each affected Feature receives a patch version bump.
Tests
Adds a deterministic, network-independent test matrix covering every affected
Feature and tool.
The suite verifies:
*_LAST_KNOWN_VERSIONThe test matrix derives known-good values directly from each installer rather
than duplicating version pins in test data.
A focused GitHub Actions workflow runs synchronization checks, fallback tests,
and ShellCheck whenever relevant files change.
Validation
bash -ngit diff --checkpassesv1.33.0v3.17.3v1.31.1Compatibility
No Feature options or existing exact-version behavior are removed. The new
fallback paths apply only when dynamic version discovery is required and the
preferred source is unavailable.