## TL;DR

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.

## Steps

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

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

## When to use

You are seeing this: 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... 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: v15.2.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.
