distributable:
  url: https://github.com/kubernetes-sigs/kind/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: kubernetes-sigs/kind

build:
  script:
    - go mod download
    - go build $GOFLAGS -o {{prefix}}/bin/kind ./cmd/kind
  dependencies:
    go.dev: ^1.18
  env:
    linux:
      GOFLAGS: -buildmode=pie

provides:
  - bin/kind

test:
  - kind --help
  - kind version
  - kind version | grep "kind v{{version}}"
