1
0
mirror of https://github.com/rancher/os.git synced 2025-09-23 11:30:49 +00:00

Drop golint which does not work anymore with current Golang versions

This commit is contained in:
Olli Janatuinen
2024-10-19 07:55:44 +00:00
parent 35caf34ad3
commit 2a0c230143
2 changed files with 0 additions and 9 deletions

View File

@@ -153,9 +153,6 @@ RUN echo "... Downloading ${!KERNEL_URL}"; \
RUN curl -L https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${HOST_ARCH}.tar.gz | tar -xzf - -C /usr/local && \
go get github.com/burmilla/trash
# Install golint
RUN go get golang.org/x/lint/golint
# Install Host Docker
RUN curl -fL ${!BUILD_DOCKER_URL} > /usr/bin/docker && \
chmod +x /usr/bin/docker

View File

@@ -9,12 +9,6 @@ PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u
echo Running: go vet
go vet ${PACKAGES}
echo Running: golint
for i in ${PACKAGES}; do
if [ -n "$(golint $i | grep -v 'should have comment.*or be unexported' | tee /dev/stderr)" ]; then
failed=true
fi
done
test -z "$failed"
echo Running: go fmt
test -z "$(go fmt ${PACKAGES} | tee /dev/stderr)"