databricks-cli/bundle/config/mutator/python
Gleb Kanterov 13596eb605
PythonMutator: Fix relative path error (#2253)
## Changes

Fix relative path errors in the Python mutator that was failing during
deployment since v0.239.1.

Before that:

```
% databricks bundle deploy  
Deploying resources...
Updating deployment state...
Error: failed to compute relative path for job jobs_as_code_project_job: Rel: can't make resources/jobs_as_code_project_job.py relative to /Users/$USER/jobs_as_code_project
```

As a result, the bundle was deployed, but the deployment state wasn't
updated.

## Tests

Unit tests, adding acceptance tests in
https://github.com/databricks/cli/pull/2254
2025-01-29 13:56:57 +00:00
..
log_writer.go Add ApplyPythonMutator (#1430) 2024-06-20 08:43:08 +00:00
python_diagnostics.go PythonMutator: propagate source locations (#1783) 2025-01-22 15:37:37 +00:00
python_diagnostics_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
python_locations.go PythonMutator: Fix relative path error (#2253) 2025-01-29 13:56:57 +00:00
python_locations_test.go PythonMutator: Fix relative path error (#2253) 2025-01-29 13:56:57 +00:00
python_mutator.go PythonMutator: Fix relative path error (#2253) 2025-01-29 13:56:57 +00:00
python_mutator_test.go PythonMutator: Fix relative path error (#2253) 2025-01-29 13:56:57 +00:00