Skip to content

cargo xtask dev fails where worker-build isn't installed #41

Closed

Description

@fctl-sh

What is wrong. On a machine without worker-build, cargo xtask dev builds everything and then stops when wrangler starts the control plane:

[custom build] … Process exited with non-zero status (127)
✘ [ERROR] Running custom build `worker-build --dev` failed.

How it works now. crates/fctl-control/wrangler.toml builds the Worker with worker-build --dev. util::worker_build() in xtask/src/util.rs installs it with cargo install worker-build --version 0.8.7 --locked when it is missing, but only cargo xtask deploy calls it, not dev. CI installs it in its own step (.github/workflows/ci.yml). docs/development.md lists Rust and Node.js as the setup, not worker-build.

In an fctl sandbox (the default image, images/agent), installing it also needs libssl-dev: openssl-sys doesn't build without it. The image has neither Rust nor libssl-dev.

What should happen

  • cargo xtask dev installs worker-build when it is missing, as deploy does, before wrangler needs it.
  • docs/development.md says what a fresh Debian machine needs (libssl-dev and pkg-config to build worker-build).

Compatibility. Development tooling only: nothing ships to hosts or the control plane.

Decisions for a person. Whether the default sandbox image should include Rust and libssl-dev, since agents working on fctl install them in every session (#2, #16).

Found while taking screenshots of the web app for the screenshots skill (#40).

Session: https://app.fctl.sh/s/ses_01M56CE8ANDXBDMB930CSXN186

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions