mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	also update config to show all issues at once and set same exlucde rules as buildkit ones. Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			503 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			503 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# syntax=docker/dockerfile:1
 | 
						|
 | 
						|
ARG GO_VERSION=1.21.3
 | 
						|
ARG GOLANGCI_LINT_VERSION=1.54.2
 | 
						|
 | 
						|
FROM golang:${GO_VERSION}-alpine
 | 
						|
RUN apk add --no-cache git gcc musl-dev
 | 
						|
ENV GOFLAGS="-buildvcs=false"
 | 
						|
ARG GOLANGCI_LINT_VERSION
 | 
						|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v${GOLANGCI_LINT_VERSION}
 | 
						|
WORKDIR /go/src/github.com/docker/buildx
 | 
						|
RUN --mount=target=/go/src/github.com/docker/buildx \
 | 
						|
    --mount=target=/root/.cache,type=cache \
 | 
						|
    golangci-lint run
 |