Skip to content

Add schema validation for versions.lock#37

Merged
lex57ukr merged 1 commit intomainfrom
22-add-schema-validation-for-versions-lock
Feb 15, 2026
Merged

Add schema validation for versions.lock#37
lex57ukr merged 1 commit intomainfrom
22-add-schema-validation-for-versions-lock

Conversation

@lex57ukr
Copy link
Contributor

Summary

A typo in versions.lock silently passes an empty string to a Dockerfile ARG, causing cryptic checksum failures at build time. This PR adds a pre-build validation step that compares lockfile keys against Dockerfile ARG declarations and fails early with a clear mismatch report.

Related Issues

Fixes #22

Changes

  • Add scripts/lib/validate-lockfile.sh that extracts bare ARGs from the Dockerfile and keys from versions.lock, then reports mismatches in both directions
  • Add lint-lockfile Make target wired into make lint as the first dependency

Introduce validate-lockfile.sh that compares bare Dockerfile ARG
declarations against versions.lock keys and reports mismatches in
both directions. Wire it into `make lint` as the lint-lockfile target
so typos are caught before the build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lex57ukr lex57ukr added the enhancement New feature or request label Feb 15, 2026
@lex57ukr lex57ukr merged commit 4e2c741 into main Feb 15, 2026
1 check passed
@lex57ukr lex57ukr deleted the 22-add-schema-validation-for-versions-lock branch February 15, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add schema validation for versions.lock

1 participant