-
Notifications
You must be signed in to change notification settings - Fork 4
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 #115 from essentialkaos/develop
Version 1.0.5
- Loading branch information
Showing
13 changed files
with
161 additions
and
107 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[files] | ||
extend-exclude = ["go.sum"] |
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,47 +1,104 @@ | ||
################################################################################ | ||
|
||
# This Makefile generated by GoMakeGen 1.5.1 using next command: | ||
# This Makefile generated by GoMakeGen 3.0.2 using next command: | ||
# gomakegen --mod . | ||
# | ||
# More info: https://kaos.sh/gomakegen | ||
|
||
################################################################################ | ||
|
||
export GO111MODULE=on | ||
ifdef VERBOSE ## Print verbose information (Flag) | ||
VERBOSE_FLAG = -v | ||
endif | ||
|
||
COMPAT ?= 1.19 | ||
MAKEDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD) | ||
|
||
################################################################################ | ||
|
||
.DEFAULT_GOAL := help | ||
.PHONY = fmt vet deps deps-test test mod-init mod-update mod-vendor help | ||
.PHONY = fmt vet deps update test init vendor mod-init mod-update mod-download mod-vendor help | ||
|
||
################################################################################ | ||
|
||
deps: mod-update ## Download dependencies | ||
init: mod-init ## Initialize new module | ||
|
||
deps: mod-download ## Download dependencies | ||
|
||
update: mod-update ## Update dependencies to the latest versions | ||
|
||
deps-test: deps ## Download dependencies for tests | ||
vendor: mod-vendor ## Make vendored copy of dependencies | ||
|
||
test: ## Run tests | ||
go test -covermode=count . | ||
@echo "[36;1mStarting tests…[0m" | ||
ifdef COVERAGE_FILE ## Save coverage data into file (String) | ||
@go test $(VERBOSE_FLAG) -covermode=count -coverprofile=$(COVERAGE_FILE) . | ||
else | ||
@go test $(VERBOSE_FLAG) -covermode=count . | ||
endif | ||
|
||
mod-init: | ||
@echo "[37m[1/2][0m [36;1mModules initialization…[0m" | ||
ifdef MODULE_PATH ## Module path for initialization (String) | ||
@go mod init $(MODULE_PATH) | ||
else | ||
@go mod init | ||
endif | ||
|
||
@echo "[37m[2/2][0m [36;1mDependencies cleanup…[0m" | ||
ifdef COMPAT ## Compatible Go version (String) | ||
@go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) -go=$(COMPAT) | ||
else | ||
@go mod tidy $(VERBOSE_FLAG) | ||
endif | ||
|
||
mod-update: | ||
@echo "[37m[1/4][0m [36;1mUpdating dependencies…[0m" | ||
ifdef UPDATE_ALL ## Update all dependencies (Flag) | ||
@go get -u $(VERBOSE_FLAG) all | ||
else | ||
@go get -u $(VERBOSE_FLAG) ./... | ||
endif | ||
|
||
@echo "[37m[2/4][0m [36;1mStripping toolchain info…[0m" | ||
@grep -q 'toolchain ' go.mod && go mod edit -toolchain=none || : | ||
|
||
@echo "[37m[3/4][0m [36;1mDependencies cleanup…[0m" | ||
ifdef COMPAT | ||
@go mod tidy $(VERBOSE_FLAG) -compat=$(COMPAT) | ||
else | ||
@go mod tidy $(VERBOSE_FLAG) | ||
endif | ||
|
||
mod-init: ## Initialize new module | ||
go mod init | ||
go mod tidy | ||
@echo "[37m[4/4][0m [36;1mUpdating vendored dependencies…[0m" | ||
@test -d vendor && rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || : | ||
|
||
mod-update: ## Download modules to local cache | ||
go mod download | ||
mod-download: | ||
@echo "[36;1mDownloading dependencies…[0m" | ||
@go mod download | ||
|
||
mod-vendor: ## Make vendored copy of dependencies | ||
go mod vendor | ||
mod-vendor: | ||
@echo "[36;1mVendoring dependencies…[0m" | ||
@rm -rf vendor && go mod vendor $(VERBOSE_FLAG) || : | ||
|
||
fmt: ## Format source code with gofmt | ||
find . -name "*.go" -exec gofmt -s -w {} \; | ||
@echo "[36;1mFormatting sources…[0m" | ||
@find . -name "*.go" -exec gofmt -s -w {} \; | ||
|
||
vet: ## Runs go vet over sources | ||
go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./... | ||
vet: ## Runs 'go vet' over sources | ||
@echo "[36;1mRunning 'go vet' over sources…[0m" | ||
@go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./... | ||
|
||
help: ## Show this info | ||
@echo -e '\n\033[1mSupported targets:\033[0m\n' | ||
@echo -e '\n\033[1mTargets:\033[0m\n' | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}' | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-6s\033[0m %s\n", $$1, $$2}' | ||
@echo -e '\n\033[1mVariables:\033[0m\n' | ||
@grep -E '^ifdef [A-Z_]+ .*?## .*$$' $(abspath $(lastword $(MAKEFILE_LIST))) \ | ||
| sed 's/ifdef //' \ | ||
| awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-13s\033[0m %s\n", $$1, $$2}' | ||
@echo -e '' | ||
@echo -e '\033[90mGenerated by GoMakeGen 1.5.1\033[0m\n' | ||
@echo -e '\033[90mGenerated by GoMakeGen 3.0.2\033[0m\n' | ||
|
||
################################################################################ |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
module github.com/essentialkaos/zip7 | ||
|
||
go 1.17 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/essentialkaos/check v1.3.0 | ||
github.com/essentialkaos/ek/v12 v12.44.1 | ||
github.com/essentialkaos/check v1.4.0 | ||
github.com/essentialkaos/ek/v12 v12.127.0 | ||
) | ||
|
||
require ( | ||
github.com/kr/pretty v0.3.0 // indirect | ||
github.com/kr/pretty v0.3.1 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/rogpeppe/go-internal v1.8.1 // indirect | ||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect | ||
github.com/rogpeppe/go-internal v1.12.0 // indirect | ||
golang.org/x/sys v0.21.0 // indirect | ||
) |
Oops, something went wrong.