mirror of
https://github.com/ivabus/pantry
synced 2024-11-09 18:15:18 +03:00
new file: projects/databricks.com/package.yml
This commit is contained in:
parent
0c3d7f3277
commit
ed6156c9b4
31
projects/databricks.com/package.yml
Normal file
31
projects/databricks.com/package.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
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'
|
Loading…
Reference in a new issue