Skip to content

Commit

Permalink
Disable vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Supreeth Basabattini committed Feb 12, 2023
1 parent d7ed6a6 commit 535694f
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
#
# Copyright (c) 2021 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
unexport GOFLAGS

GOOS?=linux
GOARCH?=amd64
GOENV=GOOS=${GOOS} GOARCH=${GOARCH} CGO_ENABLED=0 GOFLAGS=
GOPATH := $(shell go env GOPATH)

# Ensure go modules are enabled:
export GO111MODULE=on
Expand All @@ -21,9 +12,6 @@ export GOPROXY=https://proxy.golang.org
# Disable CGO so that we always generate static binaries:
export CGO_ENABLED=0

# Constants:
GOPATH := $(shell go env GOPATH)

.PHONY: build
build:
go build -o kite ./cmd/kite
Expand All @@ -36,18 +24,14 @@ install:
mod:
go mod tidy

.PHONY: vendor
vendor:
go mod vendor

.PHONY: tools
tools:
@mkdir -p $(GOPATH)/bin
@ls $(GOPATH)/bin/ginkgo 1>/dev/null || (echo "Installing ginkgo..." && go install github.com/onsi/ginkgo/[email protected])
@ls $(GOPATH)/bin/mockgen 1>/dev/null || (echo "Installing gomock..." && go install github.com/golang/mock/[email protected])

.PHONY: test
test: mod vendor
test:
go test ./... -covermode=atomic -coverpkg=./... -v

# Installed using instructions from: https://golangci-lint.run/usage/install/#linux-and-windows
Expand Down

0 comments on commit 535694f

Please sign in to comment.