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:
parent
a42312a8f5
commit
d797691a21
@ -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
|
||||
|
||||
2
third_party/forked/acme/http.go
vendored
2
third_party/forked/acme/http.go
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user