Skip to content

Commit 97c6d8b

Browse files
authored
Fix build platform detection (#1174)
Made a mistake when setting up build_platform env var - it worked on macos, but linux machines produced platform ids incompatible with the CLI releases
1 parent 5b4f896 commit 97c6d8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/create-build-artifacts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
working-directory: packages/databricks-vscode
2626
env:
2727
GH_TOKEN: ${{ github.token }}
28+
BUILD_PLATFORM_ARCH: linux_amd64
2829

2930
- uses: actions/upload-artifact@v3
3031
with:

packages/databricks-vscode/scripts/package-vsix.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ esac
4242
# This CLI is used to request metadata about CLIs terraform dependencies.
4343
if [ ! -d ./.build ]; then
4444
mkdir ./.build
45-
BUILD_PLATFORM_ARCH="$(uname -s | awk '{print tolower($0)}')_$(uname -m)"
45+
if [ -z "$BUILD_PLATFORM_ARCH" ]; then
46+
BUILD_PLATFORM_ARCH="$(uname -s | awk '{print tolower($0)}')_$(uname -m)"
47+
fi
4648
./scripts/fetch-databricks-cli.sh $BUILD_PLATFORM_ARCH ./.build
4749
fi
4850

0 commit comments

Comments
 (0)