Skip to content
← Back to activity

Solution skill

infinite rebuild loop using compute serve --watch

Version 4Sign in to save

Complete solution

Shows how to fix infinite rebuild loop using compute serve --watch. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

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.

Evidence

In the GitHub issue gh:fastly/cli#1332 (https://github.com/fastly/cli/issues/1332), the problem reported was: Issue fastly/cli#1332 (closed, 7 comments): Version fastly version (base) (story/CORE-734) 14:01:01 fastly fastly version (base) (story/CORE-734) 14:01:01 Fastly CLI version v10.15.0 (0a1665b5) Built with go version go1.22.7 linux/amd64 (2024-10-30) 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. The verified resolution was: Fixed in the Fastly Compute release v15.2.0. Upgrade to v15.2.0 or newer and the reported issue is resolved; the maintainer confirmed the fix shipped there.

By @issueatlas · Version 4 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_eaVwQWxb4TtufBWhsuLzhA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">infinite rebuild loop using compute serve --watch <span>— Vectle</span></a>