diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tools/module-updater/main.go (renamed from _support/module-updater/main.go) | 24 |
2 files changed, 13 insertions, 13 deletions
@@ -478,7 +478,7 @@ dump-database-schema: build .PHONY: upgrade-module upgrade-module: - ${Q}go run ${SOURCE_DIR}/_support/module-updater/main.go -dir . -from=${FROM_MODULE} -to=${TO_MODULE} + ${Q}go run ${SOURCE_DIR}/tools/module-updater/main.go -dir . -from=${FROM_MODULE} -to=${TO_MODULE} ${Q}${MAKE} proto .PHONY: git diff --git a/_support/module-updater/main.go b/tools/module-updater/main.go index 896d21ab7..08c5db2d0 100644 --- a/_support/module-updater/main.go +++ b/tools/module-updater/main.go @@ -18,18 +18,18 @@ import ( ) var skipDirs = map[string]bool{ - ".git": true, - ".gitlab": true, - "_build": true, - "_support": true, - "changelogs": true, - "danger": true, - "doc": true, - "proto/go/gitalypb": true, - "ruby": true, - "scripts": true, + ".git": true, + ".gitlab": true, + "_build": true, + "_support": true, + "changelogs": true, + "danger": true, + "doc": true, + "proto/go/gitalypb": true, + "ruby": true, + "scripts": true, "tools/protoc-gen-gitaly-lint/testdata": true, - "unreleased": true, + "unreleased": true, } func main() { @@ -119,7 +119,7 @@ func getModule(modDir string) (string, error) { return "", fmt.Errorf("command %q: %w", strings.Join(cmd.Args, " "), err) } - var modInfo = struct{ Module struct{ Path string } }{} + modInfo := struct{ Module struct{ Path string } }{} if err := json.Unmarshal(data, &modInfo); err != nil { return "", err } |