You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### `--out-dir` writes plans to the same place with and without a Git filter
7
+
8
+
`run --all` with [`--out-dir`](/reference/cli/commands/run#out-dir) mirrors each unit under the output directory. When a Git-based filter selected the unit and `--working-dir` was a subdirectory of the repository, the mirrored path started at the root of the repository rather than at the working directory, so a unit at `live/unit` was written to `<out-dir>/live/unit` with a filter and to `<out-dir>/unit` without one.
9
+
10
+
Splitting a run in two, planning with a filter and applying the same units later without one, then failed: the apply looked for each plan under a path the plan had not written, and tofu reported that it could not load the file as a plan. Both ways of selecting a unit now mirror it from `--working-dir`, including units generated by a stack. A unit that a Git filter selects from outside `--working-dir` is still mirrored from the root of the repository, which keeps it within the output directory.
0 commit comments