From a5a2ced5561aaf804fe2e93a2ef4f67666e1d59d Mon Sep 17 00:00:00 2001 From: windyboy Date: Sat, 20 Jul 2024 00:52:31 +0800 Subject: [PATCH] feat: Update main receiver file path in Makefile The main receiver file path in the Makefile has been updated to `./cmd/main/main.go` to reflect the correct location of the file. This change ensures that the Makefile correctly builds and runs the main receiver component of the application. --- Makefile | 4 ++-- internal/config/config.go | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 91cb520..525c88d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ APP_NAME = tele-proc GO_FILES = $(shell find . -name '*.go' -type f) CONFIG_DIR = configs BUILD_DIR = build -MAIN_RECEIVER = ./cmd/receiver/main.go +MAIN_RECEIVER = ./cmd/main/main.go # Default target .PHONY: all @@ -41,7 +41,7 @@ run-test: .PHONY: test test: @echo "Running tests..." - @go test ./... + @ginkgo -r -v # Clean build artifacts .PHONY: clean diff --git a/internal/config/config.go b/internal/config/config.go index 80e04f1..a46fd19 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -153,8 +153,3 @@ func ValidateConfig(cfg *Config) error { fmt.Println("config validation passed") return nil } - -// func logAndReturnError(log *logrus.Logger, msg string) error { -// log.Error(msg) -// return fmt.Errorf(msg) -// }