-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
38 lines (28 loc) · 1.05 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
test: protobuf
go test ./...
testv: protobuf
go test -v -count=1 ./...
bench:
go test -v -bench=. ./... -run Benchmark
install: protobuf
go install ./cmd/got
protobuf:
cd ./pkg/gotfs && ./build_protobuf.sh
cd ./pkg/gotgrpc && ./build_protobuf.sh
build: protobuf
rm -r ./out/*
GOOS=darwin GOARCH=amd64 ./etc/build_go_binary.sh out/got_darwin-amd64_$(TAG) ./cmd/got
GOOS=linux GOARCH=amd64 ./etc/build_go_binary.sh out/got_linux-amd64_$(TAG) ./cmd/got
GOOS=windows GOARCH=amd64 ./etc/build_go_binary.sh out/got_windows-amd64_$(TAG) ./cmd/got
docker:
docker build -t got:local .
add-replace:
go mod edit -replace=github.com/brendoncarroll/go-state=../../brendoncarroll/go-state
go mod edit -replace=github.com/brendoncarroll/go-p2p=../../brendoncarroll/go-p2p
go mod edit -replace=github.com/inet256/inet256=../../inet256/inet256
drop-replace:
go mod edit -dropreplace=github.com/brendoncarroll/go-state
go mod edit -dropreplace=github.com/brendoncarroll/go-p2p
go mod edit -dropreplace=github.com/inet256/inet256
precommit: drop-replace test
go mod tidy