Repository navigation
Conversation
|
Using my repro here: #3433 (comment) I additionally cloned down dagger repo and switched to @vito 's PR. then I edited my go.mod by adding the replace directive line: then I ran worked!! |
|
Ok, I reversed what is happening: The PR in its current state is changing the path of the workdir from an engine perspective. However, in our tests, we directly query There are two solutions:
I believe that 1) is acceptable. Adding a commit to your PR, with the fix @vito |
otherwise host path escape assertion can fail if the workdir uses a symlink (e.g. /tmp on macOS) Signed-off-by: Alex Suraci <[email protected]>
Dest host path gets evalSymlinked, not localDir. Makes MacOS tests fail when `t.TempDir()`, as we directly query `WithLocalDir` that doesn't gets expanded in our tests Signed-off-by: Guillaume de Rouville <[email protected]>
a89c30a to
228ee28
Compare
|
@vito, I cannot add you as a reviewer. Does this fix seem ok to you ? I'll approve after your review. It works on my side |
When testing on an older Macbook Pro amd64, running on MacOS Catalina, tests were also failing due to the same previous issue as before. (Not on ARM/Monterey though). EvalSymlink is the configPath is a symlink, otherwise, ignore Signed-off-by: guillaume <[email protected]>
|
Encountered the same issue on |
|
Closes #3433 |
|
@vito, current state of PR fixes all issues on the available macs I have on hand. LGTM. Just want to double check with you the behavior |
|
@grouville Makes sense, so I guess it was breaking on write instead of read for you? I'm inclined to refactor this a bit since we'll need this "workdir bounds check" in a few APIs soon, so I'll leave it open for now and try to fix it all in one place. |
Exactly
Not a problem 😇 |
|
This should be superseded by #3348 |
otherwise host path escape assertion can fail if the workdir uses a symlink (e.g. /tmp on macOS)