Skip to content

fix(docker): don't COPY empty include/ dir (unblocks simplepool image build)#6

Merged
rsantacroce merged 1 commit into
LayerTwo-Labs:mainfrom
rsantacroce:fix-docker-include-copy
Jul 20, 2026
Merged

fix(docker): don't COPY empty include/ dir (unblocks simplepool image build)#6
rsantacroce merged 1 commit into
LayerTwo-Labs:mainfrom
rsantacroce:fix-docker-include-copy

Conversation

@rsantacroce

Copy link
Copy Markdown
Collaborator

Problem

The build_docker workflow's simplepool image leg fails at buildx:

ERROR: failed to solve: failed to compute cache key:
failed to calculate checksum of ref ...: "/include": not found

deploy/docker/Dockerfile.simplepool runs COPY include/ ./include/, but include/ is an empty directory. Git can't track empty dirs, so it exists on a local dev checkout but is absent in a fresh CI checkout — hence the COPY fails. (The dashboard/payout legs are unaffected.)

Fix

Drop the COPY include/ ./include/ line. Nothing depends on it:

  • No header lives in include/ — all headers are under src/.
  • The Makefile's -Iinclude search path harmlessly tolerates a missing directory (it's not -Werror-gated by -Wmissing-include-dirs).

A comment is added so the line isn't reintroduced.

Validation

This PR runs build_docker in build-only mode (PRs don't push), which exercises the full simplepool image build and should now go green. Merging to main publishes ghcr.io/layertwo-labs/simplepool.

Note: the "Node.js 20 is deprecated" lines in the failed run are non-fatal warnings (the actions are auto-run on Node 24), unrelated to this failure.

The Dockerfile.simplepool build stage did 'COPY include/ ./include/', but
include/ is an empty directory. Git can't track empty dirs, so it's absent in
a fresh checkout (CI), and buildx failed with '"/include": not found'. No
header lives in include/ (all are under src/), and the Makefile's -Iinclude
search path tolerates the directory's absence, so the copy is simply dropped.
@rsantacroce
rsantacroce merged commit da960f8 into LayerTwo-Labs:main Jul 20, 2026
4 checks passed
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