Improve confusing error message when there's a syntax error in COMPOSE_FILE #376

Closed
opened 2023-01-13 23:01:04 +00:00 by 3wordchant · 0 comments
Owner

Steps to reproduce:

  1. abra app config <someapp>
  2. (Accidentally biff a COMPOSE_FILE line, so the resulting COMPOSE_FILE var has a double colon, e.g. COMPOSE_FILE=compose.yml::compose.host.yml
  3. abra app deploy <someapp> -f

Expected:

"Hang on, your COMPOSE_FILE setting looks wacky"

Actual:

FATA[0006] read /home/user/.abra/recipes/traefik/: is a directory  caller="/home/user/Projects/Autonomic/CoopCloud/abra/cli/internal/deploy.go:135 DeployAction" stack="/home/user/Projects/Autonomic/CoopCloud/abra/cli/internal/deploy.go:135 DeployAction\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:524        HandleAction\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:173    Command.Run\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:405        (*App).RunAsSubcommand\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:378    Command.startApp\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:102    Command.Run\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:277        (*App).Run\n/home/user/Projects/Autonomic/CoopCloud/abra/cli/cli.go:199             RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cmd/abra/main.go:22        main\n/usr/lib/golang/src/runtime/proc.go:250                              main\n/usr/lib/golang/src/runtime/asm_amd64.s:1594                         goexit"
Steps to reproduce: 1. `abra app config <someapp>` 2. (Accidentally biff a `COMPOSE_FILE` line, so the resulting `COMPOSE_FILE` var has a double colon, e.g. `COMPOSE_FILE=compose.yml::compose.host.yml` 3. `abra app deploy <someapp> -f` Expected: "Hang on, your COMPOSE_FILE setting looks wacky" Actual: ``` FATA[0006] read /home/user/.abra/recipes/traefik/: is a directory caller="/home/user/Projects/Autonomic/CoopCloud/abra/cli/internal/deploy.go:135 DeployAction" stack="/home/user/Projects/Autonomic/CoopCloud/abra/cli/internal/deploy.go:135 DeployAction\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:524 HandleAction\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:173 Command.Run\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:405 (*App).RunAsSubcommand\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:378 Command.startApp\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:102 Command.Run\n/home/user/.go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:277 (*App).Run\n/home/user/Projects/Autonomic/CoopCloud/abra/cli/cli.go:199 RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cmd/abra/main.go:22 main\n/usr/lib/golang/src/runtime/proc.go:250 main\n/usr/lib/golang/src/runtime/asm_amd64.s:1594 goexit" ```
3wordchant added the
enhancement
abra
labels 2023-01-13 23:01:04 +00:00
decentral1se self-assigned this 2023-10-04 11:28:53 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#376
No description provided.