Skip to content

Commit

Permalink
workflows: ensure we dont commit replace in go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajolet-hashicorp committed Aug 1, 2023
1 parent d758176 commit 57c8858
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Check that go.mod does not contain a replace
run: |
if grep -q "replace" <go.mod; then
echo "go.mod contains a replace but should not." >&2
false
fi
- name: Create test directory
run: |
mkdir -p ${{ env.TEST_RESULTS_PATH }}/packer-plugin-sdk
Expand Down

0 comments on commit 57c8858

Please sign in to comment.