From d6ca36eb63d771d2f3fae9f9ce61d549972354e7 Mon Sep 17 00:00:00 2001 From: nikhilsbhat Date: Wed, 9 Jun 2021 17:05:35 +0530 Subject: [PATCH] Update make targets --- Makefile | 7 ++----- pkg/gen/provider.go | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index f3d14e2..9ab6f3f 100644 --- a/Makefile +++ b/Makefile @@ -54,10 +54,10 @@ docker.login: ## Establishes the connection to the docker registry docker.publish.image: docker_login ## Publisies the image to the registered docker registry. docker push ${DOCKER_USER}/${PROJECT_NAME}:${VERSION} -coverage.lint: ## Lint's application for errors, it is a linters aggregator (https://github.com/golangci/golangci-lint). +lint: ## Lint's application for errors, it is a linters aggregator (https://github.com/golangci/golangci-lint). if [ -z "${DEV}" ]; then golangci-lint run --color always ; else docker run --rm -v $(APP_DIR):/app -w /app golangci/golangci-lint:v1.31-alpine golangci-lint run --color always ; fi -coverage.report: ## Publishes the go-report of the appliction (uses go-reportcard) +report: ## Publishes the go-report of the appliction (uses go-reportcard) if [ -z "${DEV}" ]; then goreportcard-cli -v ; else docker run --rm -v $(APP_DIR):/app -w /app basnik/goreportcard-cli:latest goreportcard-cli -v ; fi dev.prerequisite.up: ## Sets up the development environment with all necessary components. @@ -68,8 +68,5 @@ dev.prerequisite.purge: ## Teardown the development environment by removing all install.hooks: ## install pre-push hooks for the repository. ${APP_DIR}/scripts/hook.sh ${APP_DIR} -print.source: ## prints the source packages from which the mocks would be generated. - echo ${SRC_PACKAGES} - generate.mock: ## generates mocks for the selected source packages. @go generate ${SRC_PACKAGES} \ No newline at end of file diff --git a/pkg/gen/provider.go b/pkg/gen/provider.go index 82fec14..a91bfa7 100644 --- a/pkg/gen/provider.go +++ b/pkg/gen/provider.go @@ -80,7 +80,7 @@ type TerraTemplate struct { // Metadata would be generated and stored by the utility for further references. type Metadata struct { // Version of terragen used for generating scaffolds. Updates only when higher version of terragen used. - Version string `json:"version" yaml:"version"` + Version string `json:"version" yaml:"version"` // RepoGroup to which the project is part of. RepoGroup string `json:"repo-group" yaml:"repo-group"` // ProjectModule represents the module of the project