databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Pass copy of `dyn.Path` to callback function #1747

Closed pietern closed 3 weeks ago

pietern commented 3 weeks ago

Changes

Some call sites hold on to the dyn.Path provided to them by the callback. It must therefore never be mutated after the callback returns, or these mutations leak out into unknown scope.

This change means it is no longer possible for this failure mode to happen.

Tests

Unit test.