From ed6156c9b4f636541f1c42b6528ec0d7d86308f3 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Tue, 12 Mar 2024 20:34:42 +0200 Subject: [PATCH] new file: projects/databricks.com/package.yml --- projects/databricks.com/package.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/databricks.com/package.yml diff --git a/projects/databricks.com/package.yml b/projects/databricks.com/package.yml new file mode 100644 index 00000000..e0ad6723 --- /dev/null +++ b/projects/databricks.com/package.yml @@ -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'