diff --git a/wix/pluginlist.sh b/wix/pluginlist.sh index 5d4cc9084..3a175c806 100755 --- a/wix/pluginlist.sh +++ b/wix/pluginlist.sh @@ -1,4 +1,8 @@ #!/bin/sh +set -eu + d=$(dirname "$0") -go list -f '{{range .Imports}}{{println .}}{{end}}' "$d/plugins_windows.go" + +# `main` package can't import, but it only manages versions in go.mod, so I use the `-e` option to ignore errors and list them. +go list -e -f '{{range .Imports}}{{println .}}{{end}}' "$d/plugins_windows.go"