mirror of https://github.com/lightninglabs/loop
make: dockerize linter
parent
1741896e33
commit
f0bf9302cc
@ -0,0 +1,16 @@
|
|||||||
|
FROM golang:1.18.0-buster
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y git
|
||||||
|
ENV GOCACHE=/tmp/build/.cache
|
||||||
|
ENV GOMODCACHE=/tmp/build/.modcache
|
||||||
|
|
||||||
|
COPY . /tmp/tools
|
||||||
|
|
||||||
|
RUN cd /tmp \
|
||||||
|
&& mkdir -p /tmp/build/.cache \
|
||||||
|
&& mkdir -p /tmp/build/.modcache \
|
||||||
|
&& cd /tmp/tools \
|
||||||
|
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
|
||||||
|
&& chmod -R 777 /tmp/build/
|
||||||
|
|
||||||
|
WORKDIR /build
|
@ -0,0 +1,5 @@
|
|||||||
|
module github.com/lightninglabs/loop/tools
|
||||||
|
|
||||||
|
go 1.16
|
||||||
|
|
||||||
|
require github.com/golangci/golangci-lint v1.46.2 // indirect
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
//go:build tools
|
||||||
|
// +build tools
|
||||||
|
|
||||||
|
package loop
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||||
|
)
|
Loading…
Reference in New Issue