Skip to content

Commit 1bb0d84

Browse files
committed
Don't manually run go fmt
We're already calling golangci-lint --fix. We require the gofmt formatter, and it supports autofix. Therefore, running go fmt manually after golangci-lint --fix runs doesn't have any effect. Signed-off-by: Ivan Valdes <[email protected]>
1 parent 69b9f4e commit 1bb0d84

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/fix.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ set -euo pipefail
1818
source ./scripts/test_lib.sh
1919
source ./scripts/updatebom.sh
2020

21-
# To fix according to newer version of go:
22-
# go get golang.org/dl/gotip
23-
# gotip download
24-
# GO_CMD="gotip"
25-
GO_CMD="go"
26-
2721
function bash_ws_fix {
2822
TAB=$'\t'
2923

@@ -36,7 +30,6 @@ function bash_ws_fix {
3630

3731
log_callout -e "\\nFixing etcd code for you...\n"
3832

39-
run_for_modules run ${GO_CMD} fmt || exit 2
4033
bash_ws_fix || exit 2
4134

4235
log_success -e "\\nSUCCESS: etcd code is fixed :)"

0 commit comments

Comments
 (0)