Skip to content

Commit

Permalink
Utilize native git diff feature (dexidp#2981)
Browse files Browse the repository at this point in the history
This `--exit-code` option does exactly what the script is doing

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
  • Loading branch information
marcofranssen authored and Alex Palesandro committed Sep 11, 2023
1 parent e9fac5a commit 2034d5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,23 @@ bin/protoc-gen-go-grpc:
##@ Verify

verify: generate ## Verify that all the code was generated and committed to repository.
@./scripts/git-diff
@git diff --exit-code

.PHONY: verify-proto
verify-proto: generate-proto ## Verify that the Dex client's protobuf code was generated.
@./scripts/git-diff
@git diff --exit-code

.PHONY: verify-proto
verify-proto-internal: generate-proto-internal ## Verify internal protobuf code for token encoding was generated.
@./scripts/git-diff
@git diff --exit-code

.PHONY: verify-ent
verify-ent: generate-ent ## Verify code for database ORM was generated.
@./scripts/git-diff
@git diff --exit-code

.PHONY: verify-go-mod
verify-go-mod: go-mod-tidy ## Check that go.mod and go.sum formatted according to the changes.
@./scripts/git-diff
@git diff --exit-code

##@ Test and Lint

Expand Down
7 changes: 0 additions & 7 deletions scripts/git-diff

This file was deleted.

0 comments on commit 2034d5d

Please sign in to comment.