patch sonic (properly)

This commit is contained in:
Para Dox
2025-06-14 13:20:29 +07:00
parent 7bbc5eecb9
commit e467904304

View File

@@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y git musl-dev make
RUN cd /go && git clone ${REPO:-https://github.com/0xsoniclabs/sonic.git} sonic && cd sonic && git fetch --tags
WORKDIR /go/sonic
RUN if [ -n "$COMMIT" ]; then \
git checkout -b ${VERSION} ${COMMIT}; \
else \
@@ -25,7 +27,6 @@ RUN if [ -n "$PATCH" ]; then \
echo "No patch file provided. Skipping."; \
fi
WORKDIR /go/sonic
ARG GOPROXY
RUN go mod download