Skip to content

lib/facades/*.w (libcurl, sqlite3, sdl, zlib, bzip2) are unreachable from with get: users copy them out of the compiler repo #3118

Closed

Description

@ehartford

Part of #3115.

The compiler repo ships hand-written facades in lib/facades/ (libcurl, sqlite3, sdl, zlib, bzip2). with get c.libcurl does not use them; the postal-mcp user had to find ~/with/lib/facades/libcurl.w, copy it into src/facades/, and extend it. A facade the project wrote is the compiler's knowledge, and a user should never copy it.

Fix: every facade the toolchain owns lives where with get resolves it (the registry, registry/c/<lib>/), versioned against the package, and with get uses it over the generated draft. Lookup order: project override > registry > generated draft. The UATs that copy lib/facades/*.w into a fresh project (the release UAT does) switch to with get.

Done when: lib/facades/ is empty or gone, each of its facades is reached through with get, and no UAT or doc tells a user to copy one.

Activity

  1. ehartford commented on Nov 15, 2026

    @ehartford
    ContributorAuthor

    State after #3349 (Eric, 2026-11-14): lib/contracts/ no longer exists. The five hand-written contracts are written inline by the acceptance scenarios that use them (uat/<lib>.uat), and the four the compiler tests import live under test/lib/contracts/. Nothing in With's own lib/ describes another project's package. The fix here is unchanged: each contract a user should get belongs in the registry (registry/c/<lib>/), delivered by with get, and the scenarios then stop writing their own.

  2. ehartford commented on Nov 17, 2026

    @ehartford
    ContributorAuthor

    Closing: what this asked for is done or tracked elsewhere, checked on main 6a29fb9.

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