Skip to content

Commit

Permalink
Only one call to go build
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Feb 2, 2023
1 parent e5df3eb commit 8076e89
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions go/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ NAME='github.com/hknutzen/Netspoc/go/pkg/pass1.version'
# This script should be placed in "go" subdirectory, where Go sources
# are placed. Get directory where this script is located.
dir=$(dirname $(readlink -f $0))
cd $dir

# Compile all commands.
for d in $dir/cmd/*; do
( cd $d;
go build -ldflags="-X '$NAME=$V'" )
done
go build -ldflags="-X '$NAME=$V'" cmd/...

# Do static analysis of source code.
cd $dir
go vet ./...

# Generate IPv6 tests
Expand Down

0 comments on commit 8076e89

Please sign in to comment.