Skip to content

Commit

Permalink
Merge pull request #1000 from mackerelio/wix-go-list
Browse files Browse the repository at this point in the history
list wix packages
  • Loading branch information
ne-sachirou authored May 1, 2024
2 parents 35c84b1 + 780e0d6 commit ecbb6b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wix/pluginlist.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ecbb6b0

Please sign in to comment.