-
Notifications
You must be signed in to change notification settings - Fork 238
Fix FindNoneUserPath with immutable folders #6826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,15 +110,17 @@ func findNonUserPath(b *bundle.Bundle) string { | |
| if b.Config.Workspace.RootPath != "" && !containsName(b.Config.Workspace.RootPath) { | ||
| return "root_path" | ||
| } | ||
| if b.Config.Workspace.FilePath != "" && !containsName(b.Config.Workspace.FilePath) { | ||
| return "file_path" | ||
| if !b.IsImmutableFolder() { | ||
| if b.Config.Workspace.FilePath != "" && !containsName(b.Config.Workspace.FilePath) { | ||
| return "file_path" | ||
| } | ||
| if b.Config.Workspace.ArtifactPath != "" && !containsName(b.Config.Workspace.ArtifactPath) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An explicitly configured |
||
| return "artifact_path" | ||
| } | ||
| } | ||
| if b.Config.Workspace.ResourcePath != "" && !containsName(b.Config.Workspace.ResourcePath) { | ||
| return "resource_path" | ||
| } | ||
| if b.Config.Workspace.ArtifactPath != "" && !containsName(b.Config.Workspace.ArtifactPath) { | ||
| return "artifact_path" | ||
| } | ||
| if b.Config.Workspace.StatePath != "" && !containsName(b.Config.Workspace.StatePath) { | ||
| return "state_path" | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Databricks Runtime, development mode automatically enables source-linked deployment for bundles under
/Workspace. With immutable folders enabled,TranslatePathssends relative resource paths to the snapshot, but${workspace.file_path}references in resources still resolve to the mutable sync root through the source-linked lookup. This skip makes that combination pass validation, so a single job can mix snapshot paths with source-tree paths that change without a deploy. Please disable source linking for immutable bundles or make those references resolve to the snapshot; a full-pipeline development-mode test would catch the mismatch.