Skip to content

Commit

Permalink
Merge pull request #8 from ArangoGutierrez/fixgobuild
Browse files Browse the repository at this point in the history
Add gitignore file
  • Loading branch information
ArangoGutierrez authored Apr 5, 2024
2 parents 30003ab + ba5ccfe commit f89bc92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cc-manager
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.

GO_CMD ?= go
GO_FMT ?= gofmt
GO_SRC := $(shell find . -type f -name '*.go' -not -path "./vendor/*")

BINARY_NAME ?= cc-manager

build:
go build -o cc-manager ./...
${GO_CMD} build -o ${BINARY_NAME} ./...

test:
go test ./...
${GO_CMD} test ./...

vendor:
go mod tidy
go mod vendor
go mod verify
${GO_CMD} mod tidy
${GO_CMD} mod vendor
${GO_CMD} mod verify

check-vendor: vendor
git diff --quiet HEAD -- go.mod go.sum vendor

.PHONY: vendor check-vendor

.PHONY: vendor check-vendor build test

0 comments on commit f89bc92

Please sign in to comment.