rusty-dev-containers icon indicating copy to clipboard operation
rusty-dev-containers copied to clipboard

Problem With Cargo Watch

Open dawsonc623 opened this issue 6 months ago • 0 comments

I am trying to use these features for a dev container. I have the following configuration:

{
  "name": "My Container",
  "image": "rust:bullseye",
  "features": {
    "ghcr.io/lee-orr/rusty-dev-containers/cargo-binstall:0": {},
    "ghcr.io/lee-orr/rusty-dev-containers/cargo-watch:0": {}
  }
}

The container seems to create just fine, but when I try to cargo watch I get:

error: no such command: `watch`

        Did you mean `fetch`?

        View all installed commands with `cargo --list`
        Find a package to install `watch` with `cargo search cargo-watch`

I have also tried ubuntu:latest with the ghcr.io/devcontainers/features/rust:1 feature with the same result. Is there a combination of image and features that makes this work?

dawsonc623 avatar Aug 09 '24 21:08 dawsonc623