Skip to content

Use force for upgrade confirmations#3835

Open
gonzaloriestra wants to merge 1 commit into
gdt-hydrogen-link-create-flagsfrom
gdt-hydrogen-upgrade-yes
Open

Use force for upgrade confirmations#3835
gonzaloriestra wants to merge 1 commit into
gdt-hydrogen-link-create-flagsfrom
gdt-hydrogen-upgrade-yes

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes https://github.com/shop/issues-develop/issues/22879

shopify hydrogen upgrade prompted for upgrade confirmation and could prompt again before overwriting generated upgrade instructions.

WHAT is this pull request doing?

Uses existing --force on hydrogen upgrade to skip the upgrade confirmation prompt and overwrite an existing generated instructions file for the target version.

HOW to test your changes?

Use a Hydrogen project that has an available upgrade. To verify instruction overwrite, make sure the matching .hydrogen/upgrade-*.md file already exists before running the command:

shopify hydrogen upgrade --path ./my-hydrogen-app --version <target-version> --force

The command should run without the upgrade confirmation or instruction overwrite confirmation prompts.

Post-merge steps

None.

gonzaloriestra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shopify

shopify Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your gdt-hydrogen-upgrade-yes branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment July 13, 202611:08 AM

Learn more about Hydrogen's GitHub integration.

Copy link
Copy Markdown
Contributor Author

/snapit

@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from 8406940 to 2250851 Compare July 3, 2026 12:10
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch from 369faff to 0672b0f Compare July 3, 2026 12:10
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from 2250851 to 0147582 Compare July 3, 2026 12:23
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch 2 times, most recently from 08e73e9 to d09a3d5 Compare July 3, 2026 12:33
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from 0147582 to 97b8c94 Compare July 3, 2026 12:33
@gonzaloriestra gonzaloriestra changed the title Add upgrade yes confirmation flag Use force for upgrade confirmations Jul 3, 2026
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from 97b8c94 to 29ebc6c Compare July 3, 2026 14:07
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch from d09a3d5 to 4cda90f Compare July 3, 2026 14:07
@gonzaloriestra gonzaloriestra marked this pull request as ready for review July 3, 2026 14:29
@gonzaloriestra gonzaloriestra requested a review from a team as a code owner July 3, 2026 14:29

@lucyxiang lucyxiang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Review assisted by pair-review

@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from 29ebc6c to ceded69 Compare July 7, 2026 10:13
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch from 4cda90f to 253bc92 Compare July 7, 2026 10:13
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from ceded69 to bec4169 Compare July 8, 2026 08:54
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch from 253bc92 to 4af21bf Compare July 8, 2026 08:55
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from bec4169 to a44fa79 Compare July 8, 2026 09:27
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch 2 times, most recently from 139b2e1 to fe2e4fa Compare July 8, 2026 09:44
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from a44fa79 to d156023 Compare July 8, 2026 09:44
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-link-create-flags branch from d156023 to 8612b1e Compare July 9, 2026 08:22
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-upgrade-yes branch from fe2e4fa to 4d03e11 Compare July 13, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants