Commit 57f811e
committed
fix: use indexOf instead of lastIndexOf in inferArtifactBaseDir
Artifact paths stored in execution-state.json are relative to the repository
root. When a task runs inside a worktree, the execution state file is nested
at [worktree]/.spec2flow/runtime/platform-workers/[runId]/[taskId]/execution-state.json.
Using lastIndexOf('/.spec2flow/') returns the worktree root as the base dir,
so resolving repo-root-relative artifact paths against it produces doubled
paths like [worktree]/.spec2flow/runtime/worktrees/[runId]/.spec2flow/...
Using indexOf('/.spec2flow/') returns the actual repo root (before any
.spec2flow/ occurrence), so artifact paths resolve correctly.1 parent 55cbbbd commit 57f811e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| |||
0 commit comments