Skip to content

Fail the Docker test build when the Vite+ image and vite-plus versions differ - #2442

Merged
kmcginnes merged 2 commits into
mainfrom
vite-plus-pin-check
Oct 19, 2026
Merged

kmcginnes merged 2 commits into
mainfrom
vite-plus-pin-check

Conversation

@kmcginnes

Copy link
Copy Markdown
Collaborator

Summary

The Vite+ image tag in the Dockerfile and the vite-plus catalog version in pnpm-workspace.yaml must be the same release. Only comments kept them in step, and Dependabot opens a separate PR for each, so one could merge without the other. The Docker test build now fails while they differ.

User-facing: none

 test-build-docker-image
   Checkout
+  Ensure the Vite+ image matches the vite-plus catalog version
   Build Docker image
   ...

It also carries 3 review fixes from #2435 that missed its merge:

  • docs/development.md: a Vite+ upgrade changes both pins in the same PR.
  • docs/development.md: docker build pulls from ghcr.io as well as public.ecr.aws, so a registry allowlist needs both.
  • Dockerfile: a comment ties the rm -rf ... packages/*/node_modules glob to pnpm-workspace.yaml, and says why it isn't vp run clean:dep.

Evidence

Before: a Dockerfile on vite-plus:1.2.0 with the catalog on 1.1.0 passed CI.
After: I ran the new step locally against each case:

  • 1.1.0 in both: passes
  • Catalog bumped to 1.2.0: FAIL: Dockerfile has vite-plus:1.1.0, pnpm-workspace.yaml has vite-plus 1.2.0
  • Dockerfile tag bumped to 1.2.0: fails
  • FROM line without a tag and digest: fails
  • Quoted catalog value ("1.1.0"): passes

Merge Danger

Door: two-way

Impact: CI

The image doesn't change. A future Vite+ bump PR fails the Docker test build until both pins move together.

Related

@kmcginnes kmcginnes left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Approved

@kmcginnes
kmcginnes merged commit 4cc9776 into main Oct 19, 2026
6 checks passed
@kmcginnes
kmcginnes deleted the vite-plus-pin-check branch October 19, 2026 15:40
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.

1 participant