Browse Source

Remove Go formatting check

content-update
xpetit 4 years ago
parent
commit
d0aa101412
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 1
      go/exam/Dockerfile
  2. 8
      go/exam/entrypoint.sh

1
go/exam/Dockerfile

@ -2,7 +2,6 @@ FROM golang:1-alpine
ENV GIT_TERMINAL_PROMPT=0
RUN apk add --no-cache git
RUN go get golang.org/x/tools/cmd/goimports
RUN go get github.com/01-edu/z01
COPY --from=mkcert-ca . /usr/local/share/ca-certificates
RUN update-ca-certificates

8
go/exam/entrypoint.sh

@ -13,14 +13,6 @@ first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
mkdir -p "$(dirname "$first_file")"
cat > "$first_file"
# Check formatting
s=$(goimports -d .)
if test "$s"; then
echo '$ goimports -d .'
echo "$s"
exit 1
fi
cd
# Run program

Loading…
Cancel
Save