Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.13.0 to 5.16.5. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](https://github.com/go-git/go-git/compare/v5.13.0...v5.16.5) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-version: 5.16.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
40 lines
745 B
Makefile
40 lines
745 B
Makefile
FUZZ_TIME ?= 1m
|
|
|
|
export CGO_ENABLED := 1
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test ./...
|
|
|
|
.PHONY: bench
|
|
bench:
|
|
go test -benchmem -run=^$$ -bench ^Benchmark ./...
|
|
|
|
.PHONY: fuzz
|
|
fuzz:
|
|
go test -tags gofuzz -fuzz=. -fuzztime=$(FUZZ_TIME) ./test/
|
|
|
|
# Cross build project in arm/v7.
|
|
build-arm:
|
|
docker build -t sha1cd-arm -f Dockerfile.arm .
|
|
docker run --rm sha1cd-arm
|
|
|
|
# Cross build project in arm64.
|
|
build-arm64:
|
|
docker build -t sha1cd-arm64 -f Dockerfile.arm64 .
|
|
docker run --rm sha1cd-arm64
|
|
|
|
# Build with cgo disabled.
|
|
build-nocgo:
|
|
CGO_ENABLED=0 go build ./cgo
|
|
|
|
# Run cross-compilation to assure supported architectures.
|
|
cross-build: build-arm build-arm64 build-nocgo
|
|
|
|
generate:
|
|
go generate -x ./...
|
|
|
|
verify: generate
|
|
git diff --exit-code
|
|
go vet ./...
|