Skip to content

Commit

Permalink
fix: remove unused filter on go list command.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jul 14, 2021
1 parent 44c4977 commit bedb342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type modInfo struct {
// GetModuleFile gets module file.
func GetModuleFile() (*modfile.File, error) {
// https://github.com/golang/go/issues/44753#issuecomment-790089020
cmd := exec.Command("go", "list", "-m", "-json", "-f", "{{.GoMod}}")
cmd := exec.Command("go", "list", "-m", "-json")

raw, err := cmd.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit bedb342

Please sign in to comment.