# Fix cache-dir specified on the command line \(\#14076\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 2d617c482ca24563a27125d626ac51e194d49eff

Requested commit: 2d617c482ca24563a27125d626ac51e194d49eff

Commit: 2d617c482ca24563a27125d626ac51e194d49eff

Tree: ebc0dd086752d85b3337aa0bfcfdfd0c1c20055c

Author: pluick

Committer: GitHub

## Message

```
Fix cache-dir specified on the command line (#14076)

The resolvePosix and resolveWindows routines changed behaviour in an
earlier commit so that the return value is not always an absolute path.
That caused the relativePosix and relativeWindows to return a relative
path that is not correct.

The change in behaviour mentioned above would cause a local cache-dir to
be created in the wrong directory when --cache-dir was specified for a
build.

```

## Parents

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

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