distributable:
  url: https://github.com/crc-org/vfkit/archive/refs/tags/{{version.tag}}.tar.gz
  strip-components: 1

versions:
  github: crc-org/vfkit

provides:
  - bin/vfkit

platforms: [darwin]

build:
  dependencies:
    go.dev: ^1.18
  script:
    - make GIT_VERSION={{version}}
    - mkdir -p '{{prefix}}/bin'
    - cp out/vfkit '{{prefix}}/bin'

test: 'test "$(vfkit --version | head -n1)" = "vfkit version: {{version}}"'
