Override the ACME user-agent packageversion with that of cert-manager

Signed-off-by: Richard Wall <richard.wall@cyberark.com>
This commit is contained in:
Richard Wall 2025-06-04 13:25:42 +01:00
parent a42312a8f5
commit d797691a21
2 changed files with 7 additions and 4 deletions

View File

@ -17,9 +17,12 @@
##
## @category Development
update-third-party: | $(NEEDS_KLONE)
pushd third_party && $(KLONE) sync
find third_party/forked/acme -iname '*.go' \
@pushd third_party && $(KLONE) sync
@echo acme: Updating import statements
@find third_party/forked/acme -iname '*.go' \
| xargs sed -e 's%golang\.org/x/crypto/acme%github.com/cert-manager/cert-manager/third_party/forked/acme%g' -i
pushd third_party/forked/acme && curl -fsSL \
@echo acme: Updating the package version in the user-agent string
@sed -e 's%golang\.org/x/crypto%github.com/cert-manager/cert-manager%' -i third_party/forked/acme/http.go
@pushd third_party/forked/acme && curl -fsSL \
-O https://raw.githubusercontent.com/golang/crypto/refs/heads/master/LICENSE \
-O https://raw.githubusercontent.com/golang/crypto/refs/heads/master/PATENTS

View File

@ -280,7 +280,7 @@ func init() {
return
}
for _, m := range info.Deps {
if m.Path != "golang.org/x/crypto" {
if m.Path != "github.com/cert-manager/cert-manager" {
continue
}
if m.Replace == nil {