Skip to content

Commit

Permalink
Add gitignore file
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
  • Loading branch information
ArangoGutierrez committed Apr 5, 2024
1 parent 30003ab commit ba5ccfe
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 ba5ccfe

Please sign in to comment.