Skip to content

Commit

Permalink
Update make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Jun 10, 2021
1 parent f3ee1db commit d6ca36e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}
2 changes: 1 addition & 1 deletion pkg/gen/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6ca36e

Please sign in to comment.