Add lint if compose.yml version is below 3.8 #350
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#350
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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.