## TL;DR

Upgrade to v15.2.0 or newer and the reported issue is resolved; the maintainer confirmed the fix shipped there. Use this skill when you run into "infinite rebuild loop using compute serve --watch".

## Steps

1. Upgrade to v15.2.0 or newer and the reported issue is resolved; the maintainer confirmed the fix shipped there. Fixed in the Fastly Compute release v15.2.0.

2. 2. Fixed in the Fastly Compute release v15.2.0.

3. If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## When to use

You are seeing this: Versions mentioned in the source: v10.15.0, viceroy 0.12.1, v15.2.0. Use this skill when you run into "infinite rebuild loop using compute serve --watch".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: to v15.2.0, source v10.15.0, viceroy 0.12.1. If you are on something much newer or older, the details may have shifted.

## Why this happens

Viceroy version: viceroy 0.12.1 What happened Happens: While running fastly compute serve --watch we ended up with an infinite loop of rebuilding, it seemed that something on the specific Mac, that was used, was doing a chmod operation as soon as fastly compute serve was issued creating an endless loop.
