File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -266,8 +266,15 @@ resource "coder_agent" "dev" {
266
266
sudo service docker start
267
267
# Install playwright dependencies
268
268
# We want to use the playwright version from site/package.json
269
- cd "${ local . repo_dir } /site" && pnpm install && pnpm playwright:install
270
- EOT
269
+ # Check if the directory exists At workspace creation as the coder_script runs in parallel so clone does not exist.
270
+ # it will run on fine on a restart though
271
+ if [ -d "${ local . repo_dir } /site" ]; then
272
+ cd "${ local . repo_dir } /site" && pnpm install && pnpm playwright:install
273
+ else
274
+ echo "The directory ${ local . repo_dir } /site does not exist. Clone is not complete."
275
+ echo 'Please run "${ local . repo_dir } /site && pnpm install && pnpm playwright:instal" after workspace creation'
276
+ fi
277
+ EOT
271
278
}
272
279
273
280
resource "docker_volume" "home_volume" {
You can’t perform that action at this time.
0 commit comments