summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRandall Meyer <[email protected]>2023-02-15 14:17:00 -0800
committerRandall Meyer <[email protected]>2023-02-22 09:18:25 -0800
commitbfa2e2b0fa93b6059fba0581b52d6d60a53b5a4a (patch)
treeff8a9707caf844be368106ee8000ce7c6e0b57db /Makefile
parentaba993ed378297f48ff6be18b17c6a963d3fd190 (diff)
new flag: --connect-to
Allows user to override DNS for the initial config request. This is accomplished using a custom DialContext overring the hostname used to Dial to. This allows for TLS certificate validation to still happen(optionally) while connecting to TLS secured resources. Also, - allows for optional enforcement of certificate verification - stamp built git version into binary and adds a --version option - adds a user-agent to all outgoing request - exit(1) on failures for easier shell error detection
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f2df1c5..4a3db5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
+PKG := github.com/network-quality/goresponsiveness
+GIT_VERSION := $(shell git describe --always --long)
+LDFLAGS := -ldflags "-X $(PKG)/utilities.GitVersion=$(GIT_VERSION)"
+
all: build test
build:
- go build networkQuality.go
+ go build $(LDFLAGS) networkQuality.go
test:
go test ./timeoutat/ ./traceable/ ./ms/ ./utilities/
golines: