# 0.17.0 Upgrade addDirectoryWatchInput

**URL:** <https://ziggit.dev/t/0-17-0-upgrade-adddirectorywatchinput/17891>\
**Category:** Help\
**Tags:** 0.17.0\
**Created:** [October 8, 2026, 4:35pm UTC](https://ziggit.dev/t/0-17-0-upgrade-adddirectorywatchinput/17891 "2026-10-08T16:35:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calder-Ty](https://ziggit.dev/user_avatar/ziggit.dev/calder-ty/32/10237_2.png) [@Calder-Ty](https://ziggit.dev/u/Calder-Ty)\
**Post date:** [October 8, 2026, 4:35pm UTC](https://ziggit.dev/t/0-17-0-upgrade-adddirectorywatchinput/17891/1 "2026-10-08T16:35:01Z")

</div>

I’m working on upgrading to 0.17.0. Part of my build script used `addDirectoryWatchInput` to add different directories to the `--watch` process. Those have been removed. Does anyone know what the correct way to add files to be watched is now?

---

<div class="post-metadata">

**Author:** ![vincentd](https://ziggit.dev/user_avatar/ziggit.dev/vincentd/32/9870_2.png) [@vincentd](https://ziggit.dev/u/vincentd)\
**Post date:** [October 8, 2026, 4:43pm UTC](https://ziggit.dev/t/0-17-0-upgrade-adddirectorywatchinput/17891/2 "2026-10-08T16:43:53Z")

</div>

`std.Build.dependOnDirectoryContents` may be what you’re looking for.

> **[Introduce the Concept of Configure Cache Poisoning - 0.17.0 Release Notes ⚡ The...](https://ziglang.org/download/0.17.0/release-notes.html#Introduce-the-Concept-of-Configure-Cache-Poisoning)**
>
> Download & Documentation
