From a485a511d91a20283be0217d5ee9ea5585312374 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 7 Jan 2024 22:53:03 -0800 Subject: [PATCH] Fix formatting Signed-off-by: Tamal Saha --- Makefile | 2 +- cmd/generate-feature-graph/main.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 938c39d53..92a4a88c8 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ endif ### These variables should not need tweaking. ### -SRC_PKGS := apis schema tests # directories which hold app source (not vendored) +SRC_PKGS := apis cmd schema tests # directories which hold app source (not vendored) SRC_DIRS := $(SRC_PKGS) DOCKER_PLATFORMS := linux/amd64 linux/arm linux/arm64 diff --git a/cmd/generate-feature-graph/main.go b/cmd/generate-feature-graph/main.go index 7dc217f0f..e4f41995a 100644 --- a/cmd/generate-feature-graph/main.go +++ b/cmd/generate-feature-graph/main.go @@ -18,12 +18,13 @@ package main import ( "bytes" + "os" + shell "gomodules.xyz/go-sh" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "kmodules.xyz/client-go/tools/parser" uiv1alpha1 "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" - "os" ) var featureGVK = schema.GroupVersionKind{ @@ -89,7 +90,7 @@ func main() { buf.WriteString("```") buf.WriteRune('\n') - err = os.WriteFile("features.md", buf.Bytes(), 0644) + err = os.WriteFile("features.md", buf.Bytes(), 0o644) if err != nil { panic(err) }