-
Notifications
You must be signed in to change notification settings - Fork 64
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
Switch to folders.FindDirWithLeaf
#1963
Conversation
The git module now uses alternative implementation that uses os module + strings as path directly (#1945). The remaining use case is also updated to use git.FindLeafInTree, as it's a better fit.
c197c74
to
2e102b7
Compare
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.
@denik I forgot: we have this function implemented exactly under libs/folders
. You could use that instead of a separate copy. We use this as well to find the bundle root (looking for a databricks.yml
file).
Good catch! Switched everything to use that. |
folders.FindDirWithLeaf
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.
Thank you!
(I Markdown-ified the title to show up nicely in the GitHub release notes) |
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Test Details: go/deco-tests/12259236623 |
Integration test failure is unrelated (TestAccBundleDeployUcSchema) |
Changes
Remove two duplicate implementations of the same logic, switch everywhere to folders.FindDirWithLeaf.
Add Abs() call to FindDirWithLeaf, it cannot really work on relative paths.
Tests
Existing tests.