From fb48c6a9cc3d80a5400f7429760313d7c8bc8974 Mon Sep 17 00:00:00 2001 From: Urko Date: Sat, 4 Mar 2023 21:56:47 +0100 Subject: [PATCH] feat: add missing Bin on config --- Makefile | 2 +- cfg/cfg.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 441aaab..51d7864 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build: rm -rf ${BINARY_DIR} mkdir ${BINARY_DIR} env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go -build_raspi: +build_freebsd: rm -rf ${BINARY_DIR} mkdir ${BINARY_DIR} env GOOS=freebsd CGO_ENABLED=0 GOARCH=arm64 ENV=prod go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go diff --git a/cfg/cfg.go b/cfg/cfg.go index 6e8f538..44dcd11 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go @@ -12,6 +12,7 @@ type Config struct { AdminUser string `required:"true" split_words:"true"` Password string `required:"true" split_words:"true"` LogFile bool `required:"true" split_words:"true"` + Bin string `required:"true" split_words:"true"` } func NewConfig(envFilePath string) *Config {