From 90049c80f2c048dfc1d493c221b9f53a1dca43d5 Mon Sep 17 00:00:00 2001 From: Paul Greenberg Date: Tue, 9 Apr 2024 17:04:41 -0400 Subject: [PATCH] ops: update version refs --- CONTRIBUTING.md | 8 ++++---- Makefile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8f22af8..6ec5bd5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,16 +67,16 @@ module github.com/greenpau/caddy-security go 1.21 require ( - github.com/greenpau/go-authcrunch v1.1.3 + github.com/greenpau/go-authcrunch v1.1.4 ) -replace github.com/greenpau/go-authcrunch v1.1.3 => /home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch +replace github.com/greenpau/go-authcrunch v1.1.4 => /home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch ``` Alternatively: ```bash -go mod edit -replace github.com/greenpau/go-authcrunch@v1.1.3=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch@v1.0.48 +go mod edit -replace github.com/greenpau/go-authcrunch@v1.1.4=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch@v1.0.48 ``` Then, modify `Makefile` such that that replacement passes to `xcaddy` builder: @@ -85,7 +85,7 @@ Then, modify `Makefile` such that that replacement passes to `xcaddy` builder: @mkdir -p ../xcaddy-$(PLUGIN_NAME) && cd ../xcaddy-$(PLUGIN_NAME) && \ xcaddy build $(CADDY_VERSION) --output ../$(PLUGIN_NAME)/bin/caddy \ --with github.com/greenpau/caddy-security@$(LATEST_GIT_COMMIT)=$(BUILD_DIR) \ - --with github.com/greenpau/go-authcrunch@v1.1.3=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch + --with github.com/greenpau/go-authcrunch@v1.1.4=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch ``` Once all the necessary packages are installed, you should be ready to compile diff --git a/Makefile b/Makefile index 3063235..363c387 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ devbuild: xcaddy build $(CADDY_VERSION) --output ../$(PLUGIN_NAME)/bin/authcrunch \ --with github.com/greenpau/caddy-security@$(LATEST_GIT_COMMIT)=$(BUILD_DIR) \ --with github.com/greenpau/caddy-trace@latest \ - --with github.com/greenpau/go-authcrunch@v1.1.3=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch + --with github.com/greenpau/go-authcrunch@v1.1.4=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch @go build -v -o ./bin/authcrunch cmd/authcrunch/main.go; @./bin/authcrunch version @echo "$@: complete"