From ee0b63ecaf3ae53fb70538b4b062a34abb04895f Mon Sep 17 00:00:00 2001 From: breezytm Date: Tue, 21 Oct 2025 23:20:06 -0400 Subject: [PATCH 1/2] fix: ensure git tag is fetched before checkout The build was failing with the error: ```error: pathspec 'v1.101603.1' did not match any file(s) known to git``` This occurred because `git clone` does not fetch all tags by default, and the tag `v1.101603.1` was not available in the local repository context. To fix this, added `git fetch --tags` before the checkout and used the explicit `tags/` namespace to ensure the tag is recognized. --- geth/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geth/Dockerfile b/geth/Dockerfile index d3d8aab..acc27b5 100644 --- a/geth/Dockerfile +++ b/geth/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /op-geth ARG OPGETH_VERSION -RUN git checkout $OPGETH_VERSION +RUN git fetch --tags && git checkout "tags/${OPGETH_VERSION}" RUN make geth # ------------------------------------------------------------------------- From 753b4ffab50d60af351f2c0704c7b8defcfeecfb Mon Sep 17 00:00:00 2001 From: breezytm Date: Tue, 21 Oct 2025 23:23:08 -0400 Subject: [PATCH 2/2] fix: ensure git tag is fetched before checkout Resolved an error during the Docker build: ```error: pathspec 'op-node/v1.14.1' did not match any file(s) known to git``` This was caused by attempting to checkout a tag before fetching all tags from the remote repository. By default, `git clone` does not retrieve all tags unless explicitly requested. Added `git fetch --tags` before the checkout command and used the full tag path `tags/op-node/$OPNODE_VERSION` to ensure the reference is correctly resolved. --- node/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Dockerfile b/node/Dockerfile index 7612f4a..19471be 100644 --- a/node/Dockerfile +++ b/node/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /optimism ARG OPNODE_VERSION -RUN git checkout op-node/$OPNODE_VERSION +RUN git fetch --tags && git checkout op-node/$OPNODE_VERSION COPY --from=just-builder /app/just /usr/local/bin/