From b74d50856f716f4b6d1af0bdeab376975fa54ac0 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Tue, 1 Aug 2023 14:39:55 -0400 Subject: [PATCH] workflows: improve replace check in go.mod Since the latest comment introduces a retract statement, with a comment that contains `replace', the check failed, so we improve it to only consider `replace' if they're the first thing on a line. --- .github/workflows/go-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 9182ad9d2..64f6c3b0a 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -32,7 +32,7 @@ jobs: - name: Check that go.mod does not contain a replace run: | - if grep -q "replace" &2 false fi