From a26ee4fafe128baf1f859fb1bbd715bf6c60ca5d Mon Sep 17 00:00:00 2001 From: Ryan Cragun Date: Mon, 31 Jan 2022 13:03:42 -0700 Subject: hclwrite: fix data race in formatSpaces() * Fix data race in `formatSpaces()` by inlining shared state. * Run tests with the race detector enabled. Signed-off-by: Ryan Cragun --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 423ef28..64f955f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -31,7 +31,7 @@ jobs: uses: actions/checkout@v2 - name: Go test run: | - go test ./... + go test ./... -race fmt_and_vet: name: "fmt and lint" -- cgit v1.2.3