Commit 99acf9f
Fix env file discovery by using project working directory
The SpecProcessor was using the repository base directory instead of
the project-specific working directory for env file discovery. This
caused FindEnvFiles() to look in the wrong location.
Fix: Use project.WorkingDir (set by compose reader) in Process() to
create the converter with the correct directory context. This ensures
.env files are discovered from the compose project directory.
- Moved working directory detection from constructor to Process()
- Maintains testability by using mocked ComposeProcessor
- All tests pass
Amp-Thread-ID: https://ampcode.com/threads/T-b185b0a5-0079-46ce-ae1d-8c3e80bba402
Co-authored-by: Amp <amp@ampcode.com>1 parent 1bf7c38 commit 99acf9f
2 files changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
| 21 | + | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
32 | 30 | | |
0 commit comments