Skip to content

Commit

Permalink
fix kind install bug (#1688)
Browse files Browse the repository at this point in the history
Signed-off-by: Abner-1 <[email protected]>
  • Loading branch information
ABNER-1 authored Sep 5, 2024
1 parent 4918768 commit 179d759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/src/kind/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
// +build pin

package ignore

import _ "sigs.k8s.io/kind"
2 changes: 1 addition & 1 deletion tools/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ endif
#
tools/kind = $(tools.bindir)/kind
$(tools.bindir)/%: $(tools.srcdir)/%/pin.go $(tools.srcdir)/%/go.mod
cd $(<D) && GOOS= GOARCH= go build -o $(abspath $@) $$(sed -En 's,^import "(.*)".*,\1,p' pin.go)
cd $(<D) && GOOS= GOARCH= go build -o $(abspath $@) $$(sed -En 's,^import _ "(.*)".*,\1,p' pin.go)

0 comments on commit 179d759

Please sign in to comment.