From 71c8dbe7c9bf33f18d1a5526e540645d7a81a0b9 Mon Sep 17 00:00:00 2001 From: practice-golang Date: Tue, 26 Mar 2024 15:19:33 +0900 Subject: [PATCH] misc --- .gitignore | 1 + Makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 6437b70..1348fe8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ bin/ upload/* !upload/.gitkeep +vendor/ coverage.out coverage.html /codecov.* diff --git a/Makefile b/Makefile index 74d4d46..dd7f862 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ build: go build -ldflags "-w -s" -trimpath -o bin/ ./cmd +build-vendor: + go work vendor + go build -mod vendor -ldflags "-w -s" -trimpath -o bin/ ./cmd + debug: go build -o bin/ ./cmd