# std.Build: audit use of updateFile · gitcafe/zig

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

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

Visibility: public

Requested revision: a4c35a62454a3970dd44ac8b842be91a46bb896c

Requested commit: a4c35a62454a3970dd44ac8b842be91a46bb896c

Commit: a4c35a62454a3970dd44ac8b842be91a46bb896c

Tree: d71aee352f75881373aa1658d031ff6ef765163a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build: audit use of updateFile

 * remove std.Build.updateFile. I noticed some people use it from
   build.zig (declare phase) when it is intended only for use in the
   make phase.
   - This also was incorrectly reporting errors with std.log.
 * std.Build.InstallArtifactStep
   - report better errors on failure
   - report whether the step was cached or not
 * std.Build.InstallDirStep: report better error on failure
 * std.Build.InstallFileStep: report better error on failure

```

## Parents

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

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