# std.Build.RunStep: fix default caching logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 5e7b09ce9fbc95ec9fb9e277d262b9b5a5aa1917

Requested commit: 5e7b09ce9fbc95ec9fb9e277d262b9b5a5aa1917

Commit: 5e7b09ce9fbc95ec9fb9e277d262b9b5a5aa1917

Tree: 5d916f4d7116d20ae84b1f2b7b9a98368239b14b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build.RunStep: fix default caching logic

RunStep is supposed to auto-detect whether the intend is for
side-effects or for producing an output file. The auto-detection logic
was incorrect, and this commit fixes it.

I tested this manually locally. Automated testing will require a more
significant investment in the test harness, which I will work on in a
future enhancement.

closes #14666

```

## Parents

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

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