Skip to content

Support for updating devcontainer.json files (for dev containers) #7000

Open
@apgrucza

Description

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

Dev containers are growing in popularity. They are used in VSCode and GitHub Codespaces, and support is being added to other tools such as Gitpod. Dependabot itself even uses them here.

Dependabot should support updating versions in the devcontainer.json file (specification here). This should include updating both the image and features properties.

Image example:

{
  "image": "mcr.microsoft.com/devcontainers/go:1"
}

Features example (note that both feature versions and package versions can appear in this object):

"features": {
  "ghcr.io/user/repo/go": {},
  "ghcr.io/user/repo1/go:1": {},
  "ghcr.io/user/repo2/go:latest": {},
  "https://github.com/user/repo/releases/devcontainer-feature-go.tgz": { 
        "optionA": "value" 
  },
  "./myGoFeature": { 
        "optionA": true,
        "optionB": "hello",
        "version" : "1.0.0"
  }
}

Metadata

Assignees

No one assigned

    Labels

    KeepExempt this from being marked by stalebotT: feature-requestRequests for new featuresT: new-ecosystemRequests for new ecosystems/languages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions