istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tools/go-compile-without-link (about)

     1  #!/bin/bash
     2  
     3  if [[ "${2}" == "-V=full" ]]; then
     4    "$@"
     5    exit 0
     6  fi
     7  case "$(basename ${1})" in
     8    link)
     9      # Output a dummy file
    10      touch "${3}"
    11      ;;
    12    *)
    13      "$@"
    14  esac