Add lint if compose.yml version is below 3.8 #350
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you write a recipe and put
version: 3.7
or anything below3.8
in thecompose.yml
, and you also have a config section withtemplate_driver: golang
, allabra app
commands for that fail with the rather cryptic error messageThe solution is to set
version: 3.8
or higher in yourcompose.yml
.People writing recipes can easily run into that issue when adapting a 3rd party
docker-compose.yml
file into an abracompose.yml
and forget / oversee that it has a lower version number.Instead of failing with the error message above,
abra
could tell the user to set the version number to3.8
instead.We do have
32de2ee5de/pkg/lint/recipe.go (L31-L38)
but I realise that it doesn't even get a chance to run before it hits this error.Yeh, it'd be great to fix this with a nice error message.