Skip to content

[BUG]: Codespaces Devcontainer Fails Due to Moved gh-release Dependency in shellcheck Feature #7558

@deepak427

Description

@deepak427

Description

Encountered an error when setting up stdlib in GitHub Codespaces, the devcontainer fails to build due to a broken dependency reference in the shellcheck feature.

shellcheck feature used in .devcontainer/devcontainer.json:
"ghcr.io/marcozac/devcontainer-features/shellcheck:1": {}

declares an installsAfter dependency (ref: https://github.com/marcozac/devcontainer-features/blob/main/src/shellcheck/devcontainer-feature.json):
"ghcr.io/devcontainers-contrib/features/gh-release"

This path has since moved to:
"ghcr.io/devcontainers-extra/features/gh-release"

Because of this, the container build fails completely.

Related Issues

No.

Questions

No.

Demo

No response

Reproduction

To reproduce this issue:

  • Open the repo in GitHub Codespaces (default config).
  • Wait for the container to initialize.
  • Observe the following error during setup.

Expected Results

The devcontainer should build correctly and allow contributors to begin work using Codespaces without any manual setup.

Actual Results

Error: installsAfter dependency 'ghcr.io/devcontainers-contrib/features/gh-release' of Feature 'ghcr.io/marcozac/devcontainer-features/shellcheck:1' could not be processed.
2025-07-04 13:19:42.070Z:     at FX (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:287:10922)
2025-07-04 13:19:42.070Z:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-07-04 13:19:42.070Z:     at async eC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:287:12258)
2025-07-04 13:19:42.071Z:     at async vu (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:287:12484)
2025-07-04 13:19:42.073Z: {"outcome":"error","message":"installsAfter dependency 'ghcr.io/devcontainers-contrib/features/gh-release' of Feature 'ghcr.io/marcozac/devcontainer-features/shellcheck:1' could not be processed.","description":"An error occurred setting up the container."}
2025-07-04 13:19:42.075Z:     at async Tu (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:392:1818)
2025-07-04 13:19:42.075Z:     at async gC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:395:2228)
2025-07-04 13:19:42.075Z:     at async Wu (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:395:282)
2025-07-04 13:19:42.077Z:     at async dw (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:1923)
2025-07-04 13:19:42.078Z:     at async Ix (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:608)
2025-07-04 13:19:42.081Z:     at async Y6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:484:3842)
2025-07-04 13:19:42.085Z: devcontainer process exited with exit code 1

====================================== ERROR ====================================
2025-07-04 13:19:42.094Z: Failed to create container.
=================================================================================
2025-07-04 13:19:42.095Z: Error: installsAfter dependency 'ghcr.io/devcontainers-contrib/features/gh-release' of Feature 'ghcr.io/marcozac/devcontainer-features/shellcheck:1' could not be processed.
2025-07-04 13:19:42.100Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)

====================================== ERROR ====================================
2025-07-04 13:19:42.116Z: Container creation failed.
=================================================================================
2025-07-04 13:19:42.137Z:

Version

No response

Environments

N/A

Browser Version

No response

Node.js / npm Version

No response

Platform

GitHub Codespaces (Linux)

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions