Skip to content

deps: unpinned SDK discovery fails despite a published matching asset #1888

Closed

Description

@ehartford

src/main build :deps without WITH_LLVM_SDK_VERSION fails to discover an existing per-platform SDK asset. This was found during #1880 and remains part of the modeled-C close-out campaign (#1709).

Recorded on the fix-sdk worktree (tip e229c2a), with the pinned seed driving the build:

error: deps: could not find a release containing asset 'with-llvm-sdk-22.1.6-darwin-aarch64.tar.gz'
set WITH_LLVM_SDK_VERSION to a release tag, or build it from source: tools/build-static-llvm.sh
error: build.w target 'deps' failed with exit code 1
deps rc=1

The asset exists in nightly-sdk-20260928-3ae5c9ec0b31, uploaded 2026-09-28 19:59 UTC. Verified through the GitHub release API: asset with-llvm-sdk-22.1.6-darwin-aarch64.tar.gz, SHA-256 dd824534e89fe9570558036a69fcddfecb6075b0fcad1bfa7f502c67272de7a4. Explicitly selecting that release allowed the SDK download during #1880.

Expected: on a clean checkout without an SDK marker, unpinned :deps finds a release containing the required asset. The release runbook's static LLVM SDK section specifies fetching published SDK assets instead of requiring a source rebuild or system LLVM.

Entry point to investigate: build/seed.w:137, seed_release_from_api, called by run_deps_download_action at line 292. It requests /releases?per_page=10 and scans response lines for tag_name and asset name. The exact reason this recorded request failed still needs to be established; the asset's existence alone does not prove whether pagination, response parsing, or retrieval failed.

Local evidence: ~/.local/with-staging/fix-sdk/out/deps.log. Retain the API response and distinguish fetch failure, malformed response, and asset absence when repairing discovery, so future failures explain their cause.

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