pantry/projects/databricks.com/package.yml
2024-03-12 17:25:20 -04:00

31 lines
669 B
YAML

distributable:
url: https://github.com/databricks/cli/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: databricks/cli
build:
dependencies:
go.dev: ^1.21
script:
go build $ARGS -ldflags="$LDFLAGS"
env:
ARGS:
- -trimpath
- -o={{prefix}}/bin/databricks
LDFLAGS:
- -s
- -w
- -X github.com/databricks/cli/internal/build.buildVersion={{version}}
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/databricks
test:
- databricks --version | grep {{version}}
- databricks --help
- databricks completion bash | grep '__databricks_handle_standard_completion_case'