chore: rename devcontainer name (#12356)

I had some trouble getting the devcontainer run. I use docker buildx / BuildKit.
Error was: `docker buildx build failed: ERROR: failed to build: invalid tag "gitea_-5cc3cd41d1b58674-features": invalid reference format`.

I renamed the container to not contain spaces and then it worked.

AI agreement:
I asked Claude code (Sonnet 4.6) to analyze the problem and it told me that buildx/BuildKit seems to check more strict for names.
So it guided me to the solution to rename the container.
I then myself changed the name and verified that the devcontainer starts.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12356
Reviewed-by: limiting-factor <limiting-factor@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
UweKrause 2026-05-01 00:20:15 +02:00 committed by Gusted
parent cc60e3d693
commit 3e74c5224f

View file

@ -1,5 +1,5 @@
{
"name": "Gitea DevContainer",
"name": "forgejo-dev",
"image": "mcr.microsoft.com/devcontainers/go:1.26-trixie",
"features": {
// installs nodejs into container