From fbb8affbd42a5bafbd1a4d4df9a2192bb8f5a3cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 11:57:50 +0000 Subject: [PATCH] chore(deps): bump github.com/obalunenko/logger from 0.5.1 to 0.6.0 Bumps [github.com/obalunenko/logger](https://github.com/obalunenko/logger) from 0.5.1 to 0.6.0. - [Release notes](https://github.com/obalunenko/logger/releases) - [Changelog](https://github.com/obalunenko/logger/blob/master/.goreleaser.yml) - [Commits](https://github.com/obalunenko/logger/compare/v0.5.1...v0.6.0) --- updated-dependencies: - dependency-name: github.com/obalunenko/logger dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- vendor/github.com/obalunenko/logger/Makefile | 76 +++++++++++++++---- .../logger/sonar-project.properties | 27 +++++++ vendor/modules.txt | 4 +- 5 files changed, 93 insertions(+), 20 deletions(-) create mode 100644 vendor/github.com/obalunenko/logger/sonar-project.properties diff --git a/go.mod b/go.mod index 36896953..fdfbae10 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/briandowns/spinner v1.23.0 github.com/manifoldco/promptui v0.9.0 github.com/obalunenko/getenv v1.4.2 - github.com/obalunenko/logger v0.5.1 + github.com/obalunenko/logger v0.6.0 github.com/obalunenko/version v1.1.0 github.com/stretchr/testify v1.8.2 github.com/urfave/cli/v2 v2.25.0 diff --git a/go.sum b/go.sum index 04b0d595..3c3d9913 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/obalunenko/getenv v1.4.2 h1:m/Cer+5/Di+kbpNhtmZMcYXOquqqCjlgtvSc4X89e/M= github.com/obalunenko/getenv v1.4.2/go.mod h1:trfsd8x+Ulqtw8DHKTmL1DdM9wgUd8IvOUgo22GLn3U= -github.com/obalunenko/logger v0.5.1 h1:49DIEwy4sBvRzM/OtD/m7zITi5L3S5DtSYZ/WoUrnno= -github.com/obalunenko/logger v0.5.1/go.mod h1:/GnmNcmEV7tAL9StHrs3nDkXAK+TEvChoNY+YYRZww4= +github.com/obalunenko/logger v0.6.0 h1:Sif4MYn6aGUA5pBTcKkMtJXTZNRZ52EiP4KLiFgMEkI= +github.com/obalunenko/logger v0.6.0/go.mod h1:AOThqVHT+qlG5yMVarmVYPP37yytKxL89HfY8S56a1s= github.com/obalunenko/version v1.1.0 h1:yVua7OHnK3+MJpendeMmAlfzVmq7R1h8MO3Ufz7HEec= github.com/obalunenko/version v1.1.0/go.mod h1:Or267aCQxNcAtgOeWA7yOe/RqJS4XDaMfcFwk3ohbOg= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/vendor/github.com/obalunenko/logger/Makefile b/vendor/github.com/obalunenko/logger/Makefile index 5ac38bca..cbac5c42 100644 --- a/vendor/github.com/obalunenko/logger/Makefile +++ b/vendor/github.com/obalunenko/logger/Makefile @@ -1,8 +1,19 @@ -NAME=logger +BIN_DIR=./bin SHELL := env VERSION=$(VERSION) $(SHELL) VERSION ?= $(shell git describe --tags $(git rev-list --tags --max-count=1)) +APP_NAME?=logger +SHELL := env APP_NAME=$(APP_NAME) $(SHELL) + +GOTOOLS_IMAGE_TAG?=v0.4.3 +SHELL := env GOTOOLS_IMAGE_TAG=$(GOTOOLS_IMAGE_TAG) $(SHELL) + +COMPOSE_TOOLS_FILE=deployments/docker-compose/go-tools-docker-compose.yml +COMPOSE_TOOLS_CMD_BASE=docker compose -f $(COMPOSE_TOOLS_FILE) +COMPOSE_TOOLS_CMD_UP=$(COMPOSE_TOOLS_CMD_BASE) up --exit-code-from +COMPOSE_TOOLS_CMD_PULL=$(COMPOSE_TOOLS_CMD_BASE) pull + TARGET_MAX_CHAR_NUM=20 ## Show help @@ -23,53 +34,85 @@ help: } \ { lastLine = $$0 }' $(MAKEFILE_LIST) +## Test coverage report. +test-cover: + ./scripts/tests/coverage.sh +.PHONY: test-cover + +prepare-cover-report: test-cover + $(COMPOSE_TOOLS_CMD_UP) prepare-cover-report prepare-cover-report +.PHONY: prepare-cover-report + +## Open coverage report. +open-cover-report: prepare-cover-report + ./scripts/open-coverage-report.sh +.PHONY: open-cover-report +## Update readme coverage. +update-readme-cover: build prepare-cover-report + $(COMPOSE_TOOLS_CMD_UP) update-readme-coverage update-readme-coverage +.PHONY: update-readme-cover +## Run tests. +test: + $(COMPOSE_TOOLS_CMD_UP) run-tests run-tests +.PHONY: test +## Run regression tests. +test-regression: test +.PHONY: test-regression + +## Sync vendor and install needed tools. +configure: sync-vendor install-tools + +## Sync vendor with go.mod. sync-vendor: ./scripts/sync-vendor.sh .PHONY: sync-vendor ## Fix imports sorting. imports: - ${call colored, fix-imports is running...} - ./scripts/style/fix-imports.sh + $(COMPOSE_TOOLS_CMD_UP) fix-imports fix-imports .PHONY: imports ## Format code with go fmt. fmt: - ${call colored, fmt is running...} - ./scripts/style/fmt.sh + $(COMPOSE_TOOLS_CMD_UP) fix-fmt fix-fmt .PHONY: fmt ## Format code and sort imports. format-project: fmt imports .PHONY: format-project +## Installs vendored tools. install-tools: - ./scripts/install/vendored-tools.sh + echo "Installing ${GOTOOLS_IMAGE_TAG}" + $(COMPOSE_TOOLS_CMD_PULL) .PHONY: install-tools ## vet project vet: - ${call colored, vet is running...} ./scripts/linting/run-vet.sh .PHONY: vet ## Run full linting lint-full: - ./scripts/linting/run-linters.sh + $(COMPOSE_TOOLS_CMD_UP) lint-full lint-full .PHONY: lint-full ## Run linting for build pipeline lint-pipeline: - ./scripts/linting/run-linters-pipeline.sh + $(COMPOSE_TOOLS_CMD_UP) lint-pipeline lint-pipeline .PHONY: lint-pipeline -## recreate all generated code and swagger documentation. +## Run linting for sonar report +lint-sonar: + $(COMPOSE_TOOLS_CMD_UP) lint-sonar lint-sonar +.PHONY: lint-sonar + +## recreate all generated code and documentation. codegen: - ${call colored, codegen is running...} - ./scripts/codegen/go-generate.sh + $(COMPOSE_TOOLS_CMD_UP) go-generate go-generate .PHONY: codegen ## recreate all generated code and swagger documentation and format code. @@ -83,15 +126,18 @@ release: ## Release local snapshot release-local-snapshot: - ${call colored, release is running...} ./scripts/release/local-snapshot-release.sh .PHONY: release-local-snapshot +## Check goreleaser config. +check-releaser: + ./scripts/release/check.sh +.PHONY: check-releaser + ## Issue new release. -new-version: vet +new-version: vet test-regression ./scripts/release/new-version.sh .PHONY: new-release - .DEFAULT_GOAL := help diff --git a/vendor/github.com/obalunenko/logger/sonar-project.properties b/vendor/github.com/obalunenko/logger/sonar-project.properties new file mode 100644 index 00000000..9479e5e4 --- /dev/null +++ b/vendor/github.com/obalunenko/logger/sonar-project.properties @@ -0,0 +1,27 @@ +# ===================================================== +# Standard properties +# ===================================================== +sonar.projectKey=obalunenko_logger +sonar.organization=obalunenko +sonar.projectName=logger +sonar.projectVersion=1.0 +sonar.host.url=https://sonarcloud.io +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. +sonar.sources=. +sonar.exclusions=**/*_test.go,**/vendor/** +sonar.tests=. +sonar.test.inclusions=**/*_test.go +sonar.test.exclusions=**/vendor/** +# ===================================================== +# Meta-data for the project +# ===================================================== +sonar.links.homepage=https://github.com/obalunenko/logger +sonar.links.ci=https://github.com/obalunenko/logger/actions +sonar.links.issue=https://github.com/obalunenko/logger/issues +# ===================================================== +# Properties specific to Go +# ===================================================== +sonar.go.golangci-lint.reportPaths=linters.out +sonar.go.tests.reportPaths=tests-report.json +sonar.go.coverage.reportPaths=coverage/full.cov diff --git a/vendor/modules.txt b/vendor/modules.txt index c92d83a8..b869f972 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -38,8 +38,8 @@ github.com/mattn/go-isatty github.com/obalunenko/getenv github.com/obalunenko/getenv/internal github.com/obalunenko/getenv/option -# github.com/obalunenko/logger v0.5.1 -## explicit; go 1.18 +# github.com/obalunenko/logger v0.6.0 +## explicit; go 1.20 github.com/obalunenko/logger # github.com/obalunenko/version v1.1.0 ## explicit; go 1.17