Skip to content

Commit 2b4ede5

Browse files
committed
fix(docker-go-dev): test-cover.sh error
1 parent cc113c2 commit 2b4ede5

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

rootfs/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV AZCLI_VERSION=2.9.1 \
1515
# This is a huge one-liner to optimize the Docker image layer.
1616
# We disable source repos to speed up apt-get update.
1717
RUN \
18-
sed -i -e 's/^deb-src/#deb-src/' /etc/apt/sources.list && \
18+
sed -i -e 's/archive.ubuntu.com/mirrors.aliyun.com/' /etc/apt/sources.list && \
1919
export DEBIAN_FRONTEND=noninteractive && \
2020
apt-get update && \
2121
apt-get upgrade -y --no-install-recommends && \
@@ -72,7 +72,9 @@ RUN \
7272
github.com/mitchellh/gox \
7373
golang.org/x/lint \
7474
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin $GOLANGCI_LINT_VERSION \
75-
&& pip3 install --disable-pip-version-check --no-cache-dir azure-cli==${AZCLI_VERSION} shyaml \
75+
&& pip3 install --disable-pip-version-check --no-cache-dir \
76+
-i https://mirrors.aliyun.com/pypi/simple/ \
77+
azure-cli==${AZCLI_VERSION} shyaml \
7678
&& apt-get purge --auto-remove -y libffi-dev python3-dev python3-pip \
7779
&& apt-get autoremove -y \
7880
&& apt-get clean -y \

rootfs/usr/local/bin/lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ golangci-lint --disable-all \
1212
-E=vet \
1313
-E=gofmt \
1414
-E=golint \
15+
--timeout=600s \
1516
run ./...
1617

1718
exit $mandatory

rootfs/usr/local/bin/test-cover.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -euo pipefail
44
IFS=$'\n\t'
55

6-
go test --coverage=atomic -coverprofile=coverage.txt ./...
6+
go test --covermode=atomic -coverprofile=coverage.txt ./...

0 commit comments

Comments
 (0)