Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit f285eef

Browse files
fix(devcontainers-cli): install to $CODER_SCRIPT_BIN_DIR when using yarn (#457)
When using `codercom/enterprise-node`, this will install the `devcontainer` cli into `/home/coder/.yarn/bin`, which is _not_ in `$PATH`. To work around this, we'll install it into `$CODER_SCRIPT_BIN_DIR`, like we do with `pnpm`.
1 parent 8eecf81 commit f285eef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devcontainers-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The devcontainers-cli module provides an easy way to install [`@devcontainers/cl
1616
```tf
1717
module "devcontainers-cli" {
1818
source = "registry.coder.com/modules/devcontainers-cli/coder"
19-
version = "1.0.1"
19+
version = "1.0.2"
2020
agent_id = coder_agent.example.id
2121
}
2222
```

devcontainers-cli/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ install() {
3838
fi
3939
pnpm add -g @devcontainers/cli
4040
elif [ "$PACKAGE_MANAGER" = "yarn" ]; then
41-
yarn global add @devcontainers/cli
41+
yarn global add @devcontainers/cli --prefix "$CODER_SCRIPT_BIN_DIR"
4242
fi
4343
}
4444

0 commit comments

Comments
 (0)