Add lint if compose.yml version is below 3.8 #350
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.7or anything below3.8in thecompose.yml, and you also have a config section withtemplate_driver: golang, allabra appcommands for that fail with the rather cryptic error messageThe solution is to set
version: 3.8or higher in yourcompose.yml.People writing recipes can easily run into that issue when adapting a 3rd party
docker-compose.ymlfile into an abracompose.ymland forget / oversee that it has a lower version number.Instead of failing with the error message above,
abracould tell the user to set the version number to3.8instead.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.