Skip to content

seed: self-driven pin update removes src/main before compiling the fetch helper (exit 127) #1667

Closed

Description

@ehartford

At main 334739d, updating an older src/main seed using that same path as WITH fails and removes the existing seed.

Observed command after pulling the new seed.lock:

WITH=$PWD/src/main src/main build :seed

The old binary was the previously pinned nightly-20260925-local-1-fa33bda543c2; the new pin is nightly-20260925-local-1-8d3cc360cf23.

[build] runner compiled 21.2s
pinned seed release (seed.lock): nightly-20260925-local-1-8d3cc360cf23
src/main is not the pinned seed; refetching
downloading seed from: https://github.com/withlang-dev/with/releases/download/nightly-20260925-local-1-8d3cc360cf23/with-darwin-aarch64
error: seed: seed-asset-https-fetch-helper failed with exit code 127

Afterward src/main no longer exists. Log: rss-budget/out/main-seed-refresh.log on the release host.

Source evidence (not yet debugger-confirmed): build/seed.w:231 removes output_path before seed_fetch_to_file at line 250. That function first compiles the HTTPS helper at line 108; lib/std/build.w:3074 obtains the compiler from WITH_BUILD_COMPILER. The ordering appears to remove the executable needed by the subsequent helper compilation. The same asset was fetched successfully when driven by a compiler outside the destination path.

Expected: retain the old seed until the replacement has downloaded and passed its digest checks, then publish it atomically. Failure should preserve the old executable. Cover the self-driven pin update and a failed download/verification, including the state of src/main after failure. Follow-up outside the completed #1665 RSS-policy change, per docs/handoff.md's file-during-the-hunt rule.

Activity

  1. ehartford commented on Sep 26, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by #1705 (db89bc5): the stale seed stays until the pinned one is downloaded and verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions