pulumi/tests/integration/go/regress-13301
Abhinav Gupta 975eaa6220
test(regress-13301): Avoid accidental tidying
The regression test for #13301 needs an intentionally bad go.mod file.
This file was excluded from `make tidy`, allowing it to remain invalid,
but this doesn't protect it from bulk commands like the following
used in #13593

```bash
find . -name go.mod -exec dirname '{}' ';' | while read R; do
  (cd "$R" && ... && go mod tidy)
done
```

In fact, #13593 accidentally tidied this go.mod file
(removing the extraneous dependencies critical to the regression test)
and failed in CI.

To prevent issues like this, rename the go.mod to go.mod.bad,
and rename it back to go.mod in the test environment at test time.

This also lets us revert the `make tidy` exclusion support in tidy.sh.
2023-07-26 13:05:31 -07:00
..
Pulumi.yaml Add regression test for #13301 2023-07-11 16:22:15 -07:00
go.mod.bad test(regress-13301): Avoid accidental tidying 2023-07-26 13:05:31 -07:00