Skip to content

fix: local docker build#2351

Merged
kkovaacs merged 5 commits into
nextfrom
krisztian/fix-local-docker-build
Jul 17, 2026
Merged

fix: local docker build#2351
kkovaacs merged 5 commits into
nextfrom
krisztian/fix-local-docker-build

Conversation

@kkovaacs

Copy link
Copy Markdown
Contributor

Summary

Our Dockerfile now actually depends on the docker-file-mtimes.tsv file being present. It's however only generated by the Docker build CI workflow, so local builds were just failing.

This change adds a Makefile target for generating that build pre-requisite.

This PR also makes the docker command configurable so that it can be overridden for setups with Podman.

Changelog

changelog = "none"
reason    = "Internal change only."

kkovaacs added 2 commits July 16, 2026 15:20
For setups where only `podman` is available.
Our `Dockerfile` now actually depends on the docker-file-mtimes.tsv file
being present. It's however only generated by the Docker build CI
workflow, so local builds were just failing.

This change adds a Makefile target for generating that build
pre-requisite.
kkovaacs and others added 2 commits July 16, 2026 17:46
Restoring last-commit mtimes can only make sources look older than the
artifacts in the shared /app/target cache mount, so Cargo's mtime-based
freshness check can never detect content that diverges from whatever
branch last wrote the cache. This caused CI to link a stale
miden-node-utils rlib (built by PR #2350, which added
max_connection_age_grace) against pre-#2350 sources, failing with E0063
— and the same mechanism could just as silently ship wrong code that
happens to still typecheck.

Instead, touch all sources to build time inside the Dockerfile so every
workspace path crate is always rebuilt. External dependencies are
fingerprinted by checksum, so the cargo-chef dependency cache is
unaffected. This removes the docker-file-mtimes.tsv generation from the
Makefile and workflows, and the fetch-depth: 0 that existed only to
compute it in build-docker.yml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@kkovaacs kkovaacs left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice, thanks @sergerad.

@kkovaacs
kkovaacs merged commit 3384875 into next Jul 17, 2026
24 checks passed
@kkovaacs
kkovaacs deleted the krisztian/fix-local-docker-build branch July 17, 2026 07:19
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.

3 participants