mirror of https://github.com/lightninglabs/loop
Merge pull request #496 from sputn1ck/dockerize_linter
Dockerize linter, add gosimportspull/500/head
commit
6d1708de68
@ -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,8 @@
|
||||
module github.com/lightninglabs/loop/tools
|
||||
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/golangci/golangci-lint v1.46.2 // indirect
|
||||
github.com/rinchsan/gosimports v0.1.5 // indirect
|
||||
)
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
||||
//go:build tools
|
||||
// +build tools
|
||||
|
||||
package loop
|
||||
|
||||
import (
|
||||
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
_ "github.com/rinchsan/gosimports/cmd/gosimports"
|
||||
)
|
Loading…
Reference in New Issue