Skip to content

course-sdk test go fails with docker error #53

@bolivier

Description

@bolivier

I'm following the directions in the readme, and seeing errors when I test most languages.

course: git clone https://github.com/codecrafters-io/build-your-own-git.git

docker version: Docker version 28.1.1, build 4eba377327

bun version: 1.2.13

The command output is as follows
Compiling... (use --no-compile to skip)
Building js-tools Docker image...

[docker-build] DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
[docker-build]             Install the buildx component to build images with BuildKit:
[docker-build]             https://docs.docker.com/go/buildx/
[docker-build] 
[docker-build] Sending build context to Docker daemon   1.75MB
[docker-build] Step 1/5 : FROM node:20.10.0-alpine3.18
[docker-build]  ---> 650f61ab468c
[docker-build] Step 2/5 : RUN npm install -g prettier@3.0.3
[docker-build]  ---> Using cache
[docker-build]  ---> afe89696031a
[docker-build] Step 3/5 : RUN npm install -g ajv-cli@5.0.0
[docker-build]  ---> Using cache
[docker-build]  ---> 2911e7b7287b
[docker-build] Step 4/5 : RUN npm install -g markdownlint-cli@0.37.0
[docker-build]  ---> Using cache
[docker-build]  ---> 9134cbbd36ba
[docker-build] Step 5/5 : WORKDIR /workdir
[docker-build]  ---> Using cache
[docker-build]  ---> e8fd7470c6ae
[docker-build] Successfully built e8fd7470c6ae
[docker-build] Successfully tagged course-sdk-js-tools:latest

js-tools Docker image built.

Compiling language: go...
compiling git-go
- compiling starter template for git-go
  - ignoring template interpolation for .gitattributes
  - postprocessing compiled_starters/go/README.md
compiled_starters/go/README.md 28ms
  - ignoring template interpolation for go.sum
  - ignoring template interpolation for go.mod
  - ignoring template interpolation for .codecrafters/run.sh
  - ignoring template interpolation for .codecrafters/compile.sh
  - ignoring template interpolation for app/main.go
- compiling solutions for go
- compiling solution diffs for git-go
Testing languages: go

Testing Dockerfile: git-go-1.24
-------------------------------

  - Building go-1.24 image without cache

     DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
                 Install the buildx component to build images with BuildKit:
                 https://docs.docker.com/go/buildx/
     
     Sending build context to Docker daemon  90.16kB
     Error response from daemon: dockerfile parse error on line 16: unknown flag: --exclude

  - Process exited with code 1 (expected: 0)

DockerfileTester failed. Check the logs above for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions