mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 07:33:32 -06:00
246686813d
The previous implementation of this check tried to accumulate all of the changed files into a single big string and then run goimports once with all of them, but that approach ran into problems for changesets of a certain (platform-specific) size due to limits on maximum command line length. This new version instead uses bash arrays and runs goimports separately for each of the files which appear to have changed relative to the base branch. This is likely to be slower to complete for changesets that have many different changed files, but it's better for it to be slow than to return an error and fail to check some of the files. |
||
---|---|---|
.. | ||
build.sh | ||
changelog-links.sh | ||
debug-terraform | ||
exhaustive.sh | ||
gofmtcheck.sh | ||
gogetcookie.sh | ||
goimportscheck.sh | ||
staticcheck.sh |