Before doing #231, fixed the dockerfiles by fixing the version of depenedency.
Dockerfile.build
Command
docker build -f dockerfiles/Dockerfile.build .
Log before PR
Sending build context to Docker daemon 356.9kB
Step 1/11 : FROM golang:1.13-alpine
---> 5863598a981a
Step 2/11 : RUN apk add -U git bash curl tree
---> Using cache
---> 467878a2b3a2
Step 3/11 : ARG FILEWATCHER_SHA=v0.3.2
---> Using cache
---> 92072adca244
Step 4/11 : RUN go get -d github.com/dnephin/filewatcher && cd /go/src/github.com/dnephin/filewatcher && git checkout -q "$FILEWATCHER_SHA" && go build -v -o /usr/bin/filewatcher . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> c861de1d4267
Step 5/11 : ARG GOTESTSUM=v0.4.0
---> Using cache
---> a103ebdca2c7
Step 6/11 : RUN go get -d gotest.tools/gotestsum && cd /go/src/gotest.tools/gotestsum && git checkout -q "$GOTESTSUM" && go build -v -o /usr/bin/gotestsum . && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> cdd9a49a9814
Step 7/11 : RUN go get github.com/mitchellh/gox && cp /go/bin/gox /usr/bin && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Using cache
---> 349d0bfbaea0
Step 8/11 : RUN go get -d github.com/golang/mock/mockgen && cd /go/src/github.com/golang/mock && git checkout -q "v1.0.0" && go build -v -o /usr/local/bin/mockgen ./mockgen && rm -rf /go/src/* /go/pkg/* /go/bin/*
---> Running in 105fd5b723c9
package io/fs: unrecognized import path "io/fs" (import path does not begin with hostname)
The command '/bin/sh -c go get -d github.com/golang/mock/mockgen && cd /go/src/github.com/golang/mock && git checkout -q "v1.0.0" && go build -v -o /usr/local/bin/mockgen ./mockgen && rm -rf /go/src/* /go/pkg/* /go/bin/*' returned a non-zero code: 1
Dockerfile.build
Command
docker build -f dockerfiles/Dockerfile.lint .
Log before PR
Step 1/9 : FROM golang:1.14-alpine
---> 32dc91e030ac
Step 2/9 : RUN apk add -U python3 py-pip python3-dev musl-dev gcc git bash
---> Using cache
---> fb018584c0f2
Step 3/9 : RUN pip install --ignore-installed pre-commit
---> Using cache
---> b4733f0a18a6
Step 4/9 : COPY --from=golangci/golangci-lint:v1.24.0 /usr/bin/golangci-lint /usr/bin/golangci-lint
---> Using cache
---> 8a04d84f242e
Step 5/9 : WORKDIR /go/src/github.com/dnephin/dobi
---> Using cache
---> b055e401e90a
Step 6/9 : COPY .pre-commit-config.yaml ./
---> Using cache
---> b99d444e71fb
Step 7/9 : RUN git init && pre-commit install-hooks
---> Running in 12c5950692b0
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /go/src/github.com/dnephin/dobi/.git/
An error has occurred: InvalidConfigError:
==> File .pre-commit-config.yaml
=====> Expected a Config map but got a list
Before doing #231, fixed the dockerfiles by fixing the version of depenedency.
Dockerfile.build
Command
Log before PR
Dockerfile.build
Command
Log before PR