Skip to content

Commit 7f36a6a

Browse files
authored
lock bricks version (#72)
1 parent f66d36d commit 7f36a6a

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

packages/databricks-vscode/.vscode/tasks.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// for the documentation about the tasks.json format
33
{
44
"version": "2.0.0",
5-
"options": {
6-
"env": {
7-
"BRICKS_ARCH": "darwin_arm64"
8-
}
9-
},
105
"tasks": [
116
{
127
"label": "Fetch bricks cli",

packages/databricks-vscode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@
272272
"scripts": {
273273
"vscode:prepublish": "rm -rf out && yarn run package:compile && yarn run package:copy-webview-toolkit",
274274
"package": "vsce package",
275-
"package:cli:fetch": "bash ./scripts/fetch-latest-bricks-cli.sh $BRICKS_ARCH",
276-
"package:cli:release": "bash ./scripts/fetch-latest-bricks-cli.sh $BRICKS_ARCH",
275+
"package:cli:fetch": "bash ./scripts/fetch-bricks-cli.sh v0.0.1 ${BRICKS_ARCH:-}",
276+
"package:cli:link": "rm -f ./bin/bricks && ln -s ../../../../bricks/bricks bin",
277277
"package:compile": "yarn run esbuild:base --minify",
278278
"package:copy-webview-toolkit": "cp ./node_modules/@vscode/webview-ui-toolkit/dist/toolkit.js ./out/toolkit.js",
279279
"esbuild:base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
BRICKS_VERSION=${1:-}
5+
6+
BRICKS_ARCH=$2
7+
if [ -z "$BRICKS_ARCH" ]; then
8+
BRICKS_ARCH="$(uname -s | awk '{print tolower($0)}')_$(uname -m)"
9+
fi
10+
11+
pushd /tmp
12+
rm -rf bricks_*
13+
gh release download $BRICKS_VERSION -R databricks/bricks -p "*$BRICKS_ARCH.tar.gz"
14+
tar -xvf bricks_*_$BRICKS_ARCH.tar.gz
15+
16+
popd
17+
mkdir -p bin
18+
cd ./bin
19+
rm -rf bricks
20+
mv /tmp/bricks ./

packages/databricks-vscode/scripts/fetch-latest-bricks-cli.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)