Skip to content

fix MIPS release #1697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ builds:
goarm:
- 6
- 7
gomips:
- hardfloat
env:
- CGO_ENABLED=0
ignore:
Expand Down
21 changes: 1 addition & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ clean:
rm -f golangci-lint
rm -f test/path
rm -f tools/Dracula.itermcolors
rm -f tools/godownloader
rm -f tools/goreleaser
rm -f tools/svg-term
rm -rf tools/node_modules
Expand All @@ -40,25 +39,14 @@ test_linters:

# Maintenance

generate: install.sh assets/github-action-config.json
fast_generate: assets/github-action-config.json
.PHONY: generate fast_generate

maintainer-clean: clean
rm -rf install.sh
.PHONY: maintainer-clean
.PHONY: fast_generate

fast_check_generated:
$(MAKE) --always-make fast_generate
git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
git diff --exit-code # check no changes

check_generated:
$(MAKE) --always-make generate
git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
git diff --exit-code # check no changes
.PHONY: check_generated

release: .goreleaser.yml tools/goreleaser
./tools/goreleaser
.PHONY: release
Expand All @@ -72,10 +60,6 @@ snapshot: .goreleaser.yml tools/goreleaser
golangci-lint: FORCE
go build -o $@ ./cmd/golangci-lint

tools/godownloader: export GOFLAGS = -mod=readonly
tools/godownloader: tools/go.mod tools/go.sum
cd tools && go build github.com/goreleaser/godownloader

tools/goreleaser: export GOFLAGS = -mod=readonly
tools/goreleaser: tools/go.mod tools/go.sum
cd tools && go build github.com/goreleaser/goreleaser
Expand All @@ -93,9 +77,6 @@ tools/Dracula.itermcolors:
assets/demo.svg: tools/svg-term tools/Dracula.itermcolors
./tools/svg-term --cast=183662 --out assets/demo.svg --window --width 110 --height 30 --from 2000 --to 20000 --profile ./tools/Dracula.itermcolors --term iterm2

install.sh: .goreleaser.yml tools/godownloader
./tools/godownloader .goreleaser.yml | sed '/DO NOT EDIT/s/ on [0-9TZ:-]*//' > $@

assets/github-action-config.json: FORCE golangci-lint
go run ./scripts/gen_github_action_config/main.go $@

Expand Down
11 changes: 4 additions & 7 deletions tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
module github.com/golangci/golangci-lint/tools

go 1.12
go 1.13

require (
github.com/goreleaser/godownloader v0.1.0
github.com/goreleaser/goreleaser v0.136.0
)
require github.com/goreleaser/goreleaser v0.155.0

// Fix invalid pseudo-version: revision is longer than canonical (6fd6a9bfe14e)
replace github.com/go-macaron/cors => github.com/go-macaron/cors v0.0.0-20190418220122-6fd6a9bfe14e
// https://github.com/mattn/go-shellwords/pull/39
replace github.com/mattn/go-shellwords => github.com/caarlos0/go-shellwords v1.0.11
Loading