Skip to content

Commit

Permalink
chore: do not check that go mod tidy gives empty output
Browse files Browse the repository at this point in the history
It's flaky and we have another dirty check, so this one can be safely removed.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Aug 18, 2021
1 parent 5ce92ca commit fcfca55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ COPY ./cmd ./cmd
COPY ./pkg ./pkg
COPY ./internal ./internal
COPY --from=generate /pkg/machinery/ ./pkg/machinery/
RUN --mount=type=cache,target=/.cache go list -mod=readonly all >/dev/null
RUN --mount=type=cache,target=/.cache ! go mod tidy -v 2>&1 | grep .
RUN --mount=type=cache,target=/.cache go list all >/dev/null
WORKDIR /src/pkg/machinery
RUN --mount=type=cache,target=/.cache go mod download
RUN --mount=type=cache,target=/.cache go list -mod=readonly all >/dev/null
RUN --mount=type=cache,target=/.cache ! go mod tidy -v 2>&1 | grep .
RUN --mount=type=cache,target=/.cache go list all >/dev/null
WORKDIR /src

# The init target builds the init binary.
Expand Down

0 comments on commit fcfca55

Please sign in to comment.