Skip to content

void init changes files and then exits 13 when stdin is closed #953

Done

Description

@hyfdev

Running void init without a terminal, as in CI or with < /dev/null, writes void.config.ts and edits tsconfig.json and .gitignore, then stops at a prompt that never resolves:

$ void init --toolchain vite --no-git --deploy none < /dev/null
…
Warning: Detected unsettled top-level await at file:///…/node_modules/void/dist/cli/cli.mjs:87

▲ Setup did not finish. Files changed so far:
  + void.config.ts
  ~ tsconfig.json  extends .void/tsconfig.json, added void/env to types
  ~ .gitignore     added Void defaults

Node exits with code 13, and the project is left half set up.

Clack never settles a prompt once its input ends (bombshell-dev/clack#615), and init asks for the database only after it has written these files.

#949 fixes it.

Activity

  1. added a commit that references this issue on Nov 28, 2026
    6707550
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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions