From e3141570d3355a1758cc33de1ed376de7af38e33 Mon Sep 17 00:00:00 2001 From: Naveen Mahalingam Date: Tue, 17 May 2022 22:16:45 -0700 Subject: [PATCH] stop using golint as it is deprecated (#206) --- .github/workflows/ci.yml | 1 - Makefile | 6 +----- go.mod | 2 +- go.sum | 4 ++-- text/ansi_unix.go | 1 + text/ansi_windows.go | 1 + 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbca1e6..da20a9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,6 @@ jobs: run: | go get -u github.com/fzipp/gocyclo/cmd/gocyclo go get -u github.com/mattn/goveralls - go get -u golang.org/x/lint/golint # Run all the unit-tests - name: Test diff --git a/Makefile b/Makefile index 7b952c4..4ef2107 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ all: test bench tools: go get github.com/fzipp/gocyclo - go get golang.org/x/lint/golint bench: go test -bench=. -benchmem @@ -26,13 +25,10 @@ demo-table: fmt: go fmt $(shell go list ./...) -lint: - golint -set_exit_status $(shell go list ./...) - profile: sh profile.sh -test: fmt lint vet cyclo +test: fmt vet cyclo go test -cover -coverprofile=.coverprofile $(shell go list ./...) test-race: diff --git a/go.mod b/go.mod index 7d7913c..c3b269a 100644 --- a/go.mod +++ b/go.mod @@ -7,5 +7,5 @@ require ( github.com/mattn/go-runewidth v0.0.13 github.com/pkg/profile v1.6.0 github.com/stretchr/testify v1.7.0 - golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c + golang.org/x/sys v0.0.0-20190412213103-97732733099d ) diff --git a/go.sum b/go.sum index 78fa12c..ef2a2dd 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c h1:uHnKXcvx6SNkuwC+nrzxkJ+TpPwZOtumbhWrrOYN5YA= -golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/text/ansi_unix.go b/text/ansi_unix.go index 6e79b40..635be79 100644 --- a/text/ansi_unix.go +++ b/text/ansi_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package text diff --git a/text/ansi_windows.go b/text/ansi_windows.go index 24585b9..d2a3288 100644 --- a/text/ansi_windows.go +++ b/text/ansi_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package text