Skip to content

Commit

Permalink
Fix build script paths
Browse files Browse the repository at this point in the history
Due to package name change
  • Loading branch information
jotaen committed Oct 7, 2021
1 parent 1a8939c commit ccb8b91
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions run
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
#!/bin/sh

install() {
cd src
go get -t ./...
}

build() {
cd src
go build \
-ldflags "-X 'klog/app.BinaryVersion=$1' -X 'klog/app.BinaryBuildHash=$2'" \
-o ../out/klog \
app/cli/main/klog.go
-ldflags "-X 'github.com/jotaen/klog/src/app.BinaryVersion=$1' -X 'github.com/jotaen/klog/src/app.BinaryBuildHash=$2'" \
-o ./out/klog \
src/app/cli/main/klog.go
}

test() {
cd src
go test ./...
}

format() {
cd src
go fmt ./...
}

cli() {
# When passing in a file, remember to prepend `../`
cd src
go run app/cli/main/*.go "$@"
go run src/app/cli/main/*.go "$@"
}

# MAIN
Expand Down

0 comments on commit ccb8b91

Please sign in to comment.