change: load env once

This commit is contained in:
lilong.129
2025-03-22 15:23:39 +08:00
parent 8125191ffb
commit 148d70accf
3 changed files with 34 additions and 32 deletions

View File

@@ -16,6 +16,7 @@ bump: ## bump hrp version, e.g. make bump version=4.0.0
.PHONY: build
build: ## build hrp cli tool
@echo "[info] build hrp cli tool"
go mod tidy
go build -ldflags "\
-s -w \
-X 'github.com/httprunner/httprunner/v5/internal/version.GitCommit=$(shell git rev-parse HEAD)' \