From e9a774bb7c734e3fc1f55d87048413e51ad5d94c Mon Sep 17 00:00:00 2001 From: Emil Sadek Date: Fri, 17 Jul 2026 13:50:36 -0700 Subject: [PATCH] chore(cli): add gofmt format target to Makefile --- cli/Makefile | 5 ++++- cli/internal/ossiedir/ossiedir.go | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cli/Makefile b/cli/Makefile index 9ecbcb77..637d8f19 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -1,7 +1,7 @@ BINARY_NAME := ossie BUILD_DIR := dist -.PHONY: build test lint release-dry-run clean +.PHONY: build test lint format release-dry-run clean build: go build -o $(BUILD_DIR)/$(BINARY_NAME) . @@ -12,6 +12,9 @@ test: lint: go vet ./... +format: + gofmt -w . + release-dry-run: goreleaser release --snapshot --clean --config .goreleaser.yaml diff --git a/cli/internal/ossiedir/ossiedir.go b/cli/internal/ossiedir/ossiedir.go index 051a8bd8..323c41a2 100644 --- a/cli/internal/ossiedir/ossiedir.go +++ b/cli/internal/ossiedir/ossiedir.go @@ -8,8 +8,8 @@ import ( const ( defaultOssieDir = ".ossie" - pluginsSubdir = "plugins" - envVar = "OSSIE_PLUGIN_DIR" + pluginsSubdir = "plugins" + envVar = "OSSIE_PLUGIN_DIR" ) // PluginDir returns the resolved plugin directory path.