Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions acceptance/cmd/apps/init/package_manager/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ null

=== Missing version falls back to the embedded template and its package manager
>>> DATABRICKS_CACHE_DIR=cache DATABRICKS_CACHE_ENABLED=true DATABRICKS_FORCE_EMBEDDED_COMPAT=false [CLI] apps init --name fallback-app --skip-install
Warn: Template version not found, falling back to embedded version 0.57.0
✔ Cloning template (version 0.57.0)
Warn: Template version not found, falling back to embedded version 0.84.0
✔ Cloning template (version 0.84.0)
✔ Creating project

✔ Project created successfully!
Expand All @@ -470,16 +470,16 @@ Warn: Template version not found, falling back to embedded version 0.57.0
Next steps:

cd fallback-app
npm ci && npm run dev
pnpm install --frozen-lockfile && pnpm run dev

display_name: "fallback-app"
description: "A Databricks App powered by AppKit"
command:
- "npm"
- "pnpm"
- "run"
- "start"
"npm run build:server && npm run build:client"
null
"pnpm run build:server && pnpm run build:client"
"pnpm@11.0.8"

=== Version downgrade resolves the installed npm pin
>>> CLI_TEST_NPM_VERSION=11.4.1 [CLI] apps init --name installed-older-app --version 0.81.0
Expand Down
2 changes: 1 addition & 1 deletion acceptance/cmd/apps/init/package_manager/script
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ git-repo-init
git add template
git commit -qm 'Add template'
git tag template-v0.81.0
git tag template-v0.57.0
git tag template-v0.84.0
git tag template-v0.82.0
git branch 0.81-maintenance
repo_url=$(python3 -c 'from pathlib import Path; print(Path.cwd().as_uri())')
Expand Down
3 changes: 2 additions & 1 deletion internal/build/cli-compat.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.0.0": { "appkit": "0.57.0", "skills": "0.2.10" },
"1.20.0": { "appkit": "0.84.0", "skills": "0.2.27" },
"1.0.0": { "appkit": "0.76.1", "skills": "0.2.10" },
"0.299.2": { "appkit": "0.24.0", "skills": "0.1.5" }
}
2 changes: 1 addition & 1 deletion libs/aitools/installer/installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ func TestGetSkillsRefLatestReleaseFallsBackToEmbeddedPin(t *testing.T) {

ref, explicit, err := GetSkillsRef(t.Context())
require.NoError(t, err)
assert.Equal(t, "v0.2.10", ref)
assert.Equal(t, "v0.2.27", ref)
assert.False(t, explicit, "an embedded fallback is not a user pin")
}

Expand Down
Loading