# std.Build.Step.Run: convert relative paths to be relative to child cwd · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/14e033ed95a43a5ff994df9dc524e5bc4f34452a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 14e033ed95a43a5ff994df9dc524e5bc4f34452a

Requested commit: 14e033ed95a43a5ff994df9dc524e5bc4f34452a

Commit: 14e033ed95a43a5ff994df9dc524e5bc4f34452a

Tree: 94d91e0eeceff82157e6741c0c386780529ae4d8

Author: mlugg

Committer: mlugg

## Message

```
std.Build.Step.Run: convert relative paths to be relative to child cwd

Because any `LazyPath` might be resolved to a relative path, it's
incorrect to pass that directly to a child process whose cwd might
differ. Instead, if the child has an overriden cwd, we need to convert
such paths to be relative to the child cwd using `std.fs.path.relative`.

```

## Parents

- [5c8b92db7f6e99d075af1cf87d48a5af0c748603](https://git.cafe/gitcafe/zig/commit/5c8b92db7f6e99d075af1cf87d48a5af0c748603?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/14e033ed95a43a5ff994df9dc524e5bc4f34452a?format=markdown)
