zombiezen.com/go/lua@v0.0.0-20231013005828-290725fb9140/tools/go.sh (about)

     1  #!/bin/sh
     2  # Use the following VSCode setting:
     3  # "go.alternateTools": {
     4  #   "go": "${workspaceFolder}/tools/go.sh"
     5  # },
     6  if [ $# -gt 1 ] && [ "$1" = env ]; then
     7    # VSCode does not like having stderr output on go env.
     8    exec direnv exec "$(dirname "$0")/.." go "$@" 2> /dev/null
     9  fi
    10  exec direnv exec "$(dirname "$0")/.." go "$@"