Fix verbose logs

This commit is contained in:
Pavindu Lakshan 2025-04-18 15:10:46 +05:30
parent 134385ac1c
commit 3cf97f0ad9
3 changed files with 3 additions and 4 deletions

View file

@ -12,6 +12,8 @@
set -e
set -o pipefail
UPSTREAM_BRANCH="main"
# Assign command line arguments to variables.
GIT_TOKEN=$1
WORK_DIR=$2

View file

@ -31,21 +31,18 @@ build: clean test build-linux build-linux-arm build-darwin
build-linux:
mkdir -p $(BUILD_DIR)/linux
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -x -ldflags "-X main.version=$(BUILD_VERSION) \
-X 'main.buildDate=$$(date -u '+%Y-%m-%d %H:%M:%S UTC')'" \
-o $(BUILD_DIR)/linux/openmcpauthproxy $(PROJECT_ROOT)/cmd/proxy
cp config.yaml $(BUILD_DIR)/linux
build-linux-arm:
mkdir -p $(BUILD_DIR)/linux-arm
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -x -ldflags "-X main.version=$(BUILD_VERSION) \
-X 'main.buildDate=$$(date -u '+%Y-%m-%d %H:%M:%S UTC')'" \
-o $(BUILD_DIR)/linux-arm/openmcpauthproxy $(PROJECT_ROOT)/cmd/proxy
cp config.yaml $(BUILD_DIR)/linux-arm
build-darwin:
mkdir -p $(BUILD_DIR)/darwin
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -x -ldflags "-X main.version=$(BUILD_VERSION) \
-X 'main.buildDate=$$(date -u '+%Y-%m-%d %H:%M:%S UTC')'" \
-o $(BUILD_DIR)/darwin/openmcpauthproxy $(PROJECT_ROOT)/cmd/proxy
cp config.yaml $(BUILD_DIR)/darwin

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/wso2/open-mcp-auth-proxy
go 1.22.3
go 1.21
require (
github.com/golang-jwt/jwt/v4 v4.5.2