Skip to content

Edit a Feature pinned version via upgrade cmd - #684

Merged
joshspicer merged 5 commits into
mainfrom
joshspicer/update-feature-dependabot
Nov 21, 2023
Merged

joshspicer merged 5 commits into
mainfrom
joshspicer/update-feature-dependabot

Conversation

@joshspicer

@joshspicer joshspicer commented Nov 14, 2023 •

Copy link
Copy Markdown
Contributor

This change adds new arguments to the upgrade command to facilitate updating a single Feature in a devcontainer.json. After the edit to the devcontainer.json is made, the lockfile is updated according to the requirements (version tags) of each Feature.

upgrade-a-feature.mov

This is useful in dependbot's file_updater step, allowing us to do shell out to the CLI directly for this operation. This is similar to the Swift's file_updater implementation in dependabot core

I've marked this arguments as 'hidden' while I do some initial experimentation. Today the entire lockfile will be regenerated even if --feature is used.

ref: https://github.com/github/codespaces/issues/15791

@joshspicer
joshspicer marked this pull request as ready for review November 14, 2023 22:30
@joshspicer
joshspicer requested a review from a team as a code owner November 14, 2023 22:30
@joshspicer joshspicer self-assigned this Nov 14, 2023
Comment thread src/spec-configuration/lockfile.ts Resolved
Comment thread src/spec-node/upgradeCommand.ts Resolved
@joshspicer
joshspicer merged commit b33dec4 into main Nov 21, 2023
@joshspicer
joshspicer deleted the joshspicer/update-feature-dependabot branch November 21, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants