This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from errm/go-modules
Migrate to go modules
- Loading branch information
Showing
238 changed files
with
659 additions
and
111,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
linters-settings: | ||
lll: | ||
line-length: 141 | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- prealloc | ||
- gochecknoglobals | ||
- dupl | ||
|
||
service: | ||
golangci-lint-version: 1.15.x # use the fixed version to not introduce new linters unexpectedly |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
export GO111MODULE=on | ||
|
||
GOCMD=go | ||
GOBUILD=$(GOCMD) build -ldflags="-s -w" | ||
GOTEST=$(GOCMD) test | ||
UPX=upx -9 | ||
BINARY_NAME=ekstrap | ||
WORKDIR=/go/src/github.com/errm/ekstrap | ||
PWD=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
GOMETALINTER = gometalinter ./... | ||
GORELEASER = goreleaser release --rm-dist --debug | ||
|
||
all: test lint $(BINARY_NAME) | ||
$(BINARY_NAME): generate | ||
$(BINARY_NAME): deps generate | ||
$(GOBUILD) -o $(BINARY_NAME) -v | ||
compress: $(BINARY_NAME) | ||
strip -x $(BINARY_NAME) | ||
$(UPX) $(BINARY_NAME) | ||
test: generate | ||
test: deps generate | ||
$(GOTEST) -coverprofile=coverage.txt -covermode=count ./... | ||
install-linter: | ||
$(GOCMD) get -u github.com/alecthomas/gometalinter | ||
$(GOMETALINTER) --install | ||
lint: | ||
$(GOMETALINTER) | ||
command -v golangci-lint || GO111MODULE=off $(GOCMD) get -u github.com/golangci/golangci-lint/cmd/golangci-lint | ||
golangci-lint run | ||
release: generate .goreleaser.yml | ||
$(GORELEASER) | ||
snapshot: .goreleaser.yml | ||
$(GORELEASER) --snapshot | ||
install: $(BINARY_NAME) | ||
install -m755 $(BINARY_NAME) /usr/sbin | ||
generate: | ||
command -v packr2 || $(GOCMD) get github.com/gobuffalo/packr/v2/packr2@v2.0.2 | ||
$(GOCMD) generate | ||
clean: | ||
rm -rf \ | ||
./$(BINARY_NAME) \ | ||
./dist/ | ||
$(GOCMD) clean | ||
packr2 clean | ||
rm -rf ./dist/ | ||
deps: | ||
$(GOCMD) build -v ./... | ||
upgrade: | ||
$(GOCMD) get -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module github.com/errm/ekstrap | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.14.3 | ||
github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d | ||
github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 | ||
github.com/go-ini/ini v1.37.0 | ||
github.com/gobuffalo/packr/v2 v2.0.2 | ||
github.com/godbus/dbus v4.1.0+incompatible | ||
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 | ||
github.com/pkg/errors v0.8.1 | ||
golang.org/x/sys v0.0.0-20190116161447-11f53e031339 // indirect | ||
) |
Oops, something went wrong.