-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
31 lines (19 loc) · 807 Bytes
/
build.sh
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
#!/bin/bash
GOPATH="/mnt/s/gopath"
set +H
git config --global --add url."[email protected]:".insteadOf "https://github.com/"
go env -w GOARCH="amd64"
go env -w GOOS="linux"
cd $GOPATH/src/github.com/ajruckman/ContraCore/internal || exit
go generate
rm -rf $GOPATH/pkg/mod/github.com/ajruckman/[email protected]/*
mkdir -p $GOPATH/pkg/mod/github.com/ajruckman/[email protected]/
cp -r $GOPATH/src/github.com/ajruckman/ContraCore/* $GOPATH/pkg/mod/github.com/ajruckman/[email protected]/
pkill -9 coredns
cd $GOPATH/src/github.com/coredns/coredns/ || exit
go env -w GOPRIVATE="github.com/ajruckman/ContraCore,github.com/ajruckman/xlib"
#go env -w GOARCH="arm"
#go env -w GOARM="7"
sed -i '/ContraCore/d' go.sum
make || exit
./coredns -conf $GOPATH/src/github.com/ajruckman/ContraCore/Corefile