mrtazz / checkmake

experimental linter/analyzer for Makefiles
MIT License
1.04k stars 45 forks source link

Build Command Fails. #59

Closed nstankov-bg closed 2 years ago

nstankov-bg commented 3 years ago

Issue: #58

Error Reported:

~/Desktop/Checkmate/checkmake on main !1 ❯ docker build -e BUILDER_NAME="Your Name" -e BUILDER_EMAIL="your.name@example.com" . -t checker                                                                                                                    at 06:41:24 AM
unknown shorthand flag: 'e' in -e
See 'docker build --help'.

Version:

~/Desktop/Checkmate/checkmake on main ❯ docker --version                                                                                                                                                                                            took 33s at 06:44:58 AM
Docker version 20.10.8, build 3967b7d

Updating docker build to use build arguments.

~/Desktop/Checkmate/checkmake on main ❯ docker build --build-arg BUILDER_NAME="Your Name" --build-arg BUILDER_EMAIL="your.name@example.com" . -t checker                                                                                            took 32s at 06:44:08 AM
[+] Building 31.8s (13/13) FINISHED                                                                                                                                                                                                                                         
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                   0.3s
 => => transferring dockerfile: 44B                                                                                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                      0.4s
 => => transferring context: 2B                                                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/alpine:3.9                                                                                                                                                                                                          0.5s
 => [internal] load metadata for docker.io/library/golang:1.13                                                                                                                                                                                                         0.5s
 => [stage-1 1/3] FROM docker.io/library/alpine:3.9@sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011                                                                                                                                            0.0s
 => [builder 1/4] FROM docker.io/library/golang:1.13@sha256:8ebb6d5a48deef738381b56b1d4cd33d99a5d608e0d03c5fe8dfa3f68d41a1f8                                                                                                                                           0.0s
 => [internal] load build context                                                                                                                                                                                                                                      0.3s
 => => transferring context: 9.27kB                                                                                                                                                                                                                                    0.0s
 => CACHED [builder 2/4] COPY . /go/src/github.com/mrtazz/checkmake                                                                                                                                                                                                    0.0s
 => [builder 3/4] RUN cd /go/src/github.com/mrtazz/checkmake && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make binaries                                                                                                                                                    5.9s
 => [builder 4/4] RUN cd /go/src/github.com/mrtazz/checkmake && make test                                                                                                                                                                                             22.1s
 => CACHED [stage-1 2/3] RUN apk add make                                                                                                                                                                                                                              0.0s 
 => [stage-1 3/3] COPY --from=builder /go/src/github.com/mrtazz/checkmake/checkmake /                                                                                                                                                                                  0.7s 
 => exporting to image                                                                                                                                                                                                                                                 0.7s 
 => => exporting layers                                                                                                                                                                                                                                                0.6s 
 => => writing image sha256:59b6c04d6aa5578d60a99bbe393f35ea84967b1ed0eeba6c4a33b73b163676bf                                                                                                                                                                           0.0s 
 => => naming to docker.io/library/checker 

Checklist

Not all of these might apply to your change but the more you are able to check the easier it will be to get your contribution merged.

jimmywan commented 3 years ago

Duplicate of #56

mrtazz commented 2 years ago

closing as #56 got merged. Thanks for the contribution!