api-platform: Caddy does not build
API Platform version(s) affected: 2.6.8
Description
Caddy does not build
2022/06/07 08:14:29 [FATAL] exit status 2
[568] Service 'caddy' failed to build : The command '/bin/sh -c xcaddy build --with github.com/dunglas/mercure --with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain --with github.com/dunglas/vulcain/caddy' returned a non-zero code: 1
[569]
Cleaning up project directory and file based variables
00:01
[570] ERROR: Job failed: exit status 1
How to reproduce
Build API platform
Additional Context
Gitlab CI/CD
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (3 by maintainers)
Same today but with mercure instead
I had to change CADDY_VERSION to 2.5.2 in place of 2.5.1. CADDY_VERSION=2 didn’t work for me.
Same today with a fresh clone, while building with --no-cache. Updating caddy version as suggested by @icfmp did the trick:
@janklan can you try this workaround? https://github.com/dunglas/mercure/issues/770#issuecomment-1558154310
Just had the same problem with a fresh install.
before
docker compose build --pull --no-cacheworked for me without changing any code.I don’t understand why the
--pull --no-cachehad no effect on inherited images, though.