Skip to content

Extension example test uses a non-portable file URL path on Windows #62

Closed

Description

@jimhoyd

PR #59's Windows Node 26 verification fails in checked-in extension example runs with an explicit operator registry. The fixture converts a file URL with .pathname, which leaves a leading slash before the Windows drive and fails configuration loading. Linux and macOS jobs pass.

Use Node's fileURLToPath for the example directory. Keep the executable example test enabled on Windows and require its CI rerun to pass. The fix is being included in PR #59.

Evidence: https://github.com/jimhoyd-com/urlcode/actions/runs/35275821494/job/105386079814

Activity

  1. added a commit that references this issue on Sep 17, 2026
    6490e29
  2. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    This file-URL portability defect has recurred in the generated host module in packages/auth/test/headless-auth-profile-recipe.test.ts (#811/#816).

    Revision/environment: main ff69ce41661cc52087a21bc3857916f38312d848, release run https://github.com/jimhoyd-com/urlcode/actions/runs/36332281231, Windows Node 22/24/26. All three auth jobs fail the CLI lifecycle/audit test; publishing is skipped.

    Reproduction: build core and auth's workspace dependencies, then run the auth test suite on Windows. The generated host uses new URL('./data/', import.meta.url).pathname for its database directory. The CLI fails before the lifecycle runs with Host file failed to load: ENOENT ... realpath 'D:\C:\Users\...\data'. Node 24 evidence: https://github.com/jimhoyd-com/urlcode/actions/runs/36332281231/job/108656489551 . This is separate from the SQLite teardown-order regression in #775.

    The fix uses fileURLToPath in that generated module and gives the fixture a directory containing a space and #, so URL decoding is exercised on Unix too. The public recipe uses composeHost defaults and does not contain the incorrect .pathname conversion. Local verification is running; Windows confirmation requires CI.

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