From 3a7e6858be5bd7ee160e53c2f0e841d14ec90570 Mon Sep 17 00:00:00 2001 From: Hassan Ahmed Date: Fri, 20 Oct 2023 12:40:05 +0200 Subject: [PATCH] Test with goimport commands --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f7459b7c..13ab16d6 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,8 @@ ruby: openapi-generator-cli generate -i tmp/compiled.yaml -g ruby -o clients/ruby -c ./openapi-generator/ruby_lang.yaml go: openapi-generator-cli generate -i tmp/compiled.yaml -g go -o clients/go -c ./openapi-generator/go_lang.yaml + go install golang.org/x/tools/cmd/goimports@latest + goimports -w clients/go cd clients/go && go mod tidy typescript: openapi-generator-cli generate -i tmp/compiled.yaml -g typescript-fetch -o clients/typescript -c ./openapi-generator/typescript_lang.yaml