# std.Build: resolved generated paths are cwd-relative · gitcafe/zig

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

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

Visibility: public

Requested revision: 9a3540d61e57535b719b32942a4bc9ac065cbeac

Requested commit: 9a3540d61e57535b719b32942a4bc9ac065cbeac

Commit: 9a3540d61e57535b719b32942a4bc9ac065cbeac

Tree: 9defecc1fd368737191fc12b4552260bd316c994

Author: mlugg

Committer: Matthew Lugg

## Message

```
std.Build: resolved generated paths are cwd-relative

The doc comment here agreed with the implementation, but not with *any*
`Step` which populates a `GeneratedFile`, where they are treated as
cwd-relative. This is the obvious correct choice, because these paths
usually come from joining onto a cache root, and those are cwd-relative
if not absolute.

This was a pre-existing bug, but #23836 caused it to trigger more often,
because the compiler now commonly passes the local cache directory to
the build runner process as a relative path where it was previously an
absolute path.

Resolves: #23954

```

## Parents

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

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