diff --git a/build.pl b/build.pl index 751306c30..9b4c60996 100755 --- a/build.pl +++ b/build.pl @@ -294,6 +294,13 @@ sub perform_go_check() { return 1; } +sub check_gopath { + return unless $ENV{GOPATH}; + my $gopath = "$FindBin::Bin/gopath"; + print "\$GOPATH not set. Using local gopath of $gopath\n"; + $ENV{GOPATH} = $gopath; +} + sub make_symlink { my ($old, $new) = @_; $old =~ s!/+!/!g;