std.Build.Cache: change contract of `addFilePostContents`

This function was broken, because it took ownership of the buffer on
error *sometimes*, in a way which the caller could not tell. Rather than
trying to be clever, it's easier to just follow the same interface as
all other `addFilePost` methods, and not take ownership of the path.

This is a breaking change. The next commits will apply it to the
compiler, which is the only user of this function in the ziglang/zig
repository.
d32829e053mlugg committed on 5/18/2025, 4:10:04 PMparenta0792e7
1 file changedLine totals unavailable