-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected].3=/home/greenpau/dev/go/src/github.com/greenpau/[email protected] | ||
go mod edit -replace github.com/greenpau/[email protected].4=/home/greenpau/dev/go/src/github.com/greenpau/[email protected] | ||
``` | ||
|
||
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/[email protected].3=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
--with github.com/greenpau/[email protected].4=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
``` | ||
|
||
Once all the necessary packages are installed, you should be ready to compile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected].3=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
--with github.com/greenpau/[email protected].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" | ||
|