fix: run with exist vendor

main
sudo pacman -Syu 2024-09-13 15:01:49 +07:00
parent ee04982417
commit 8e2f327964
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func (a *action) Run(c *cli.Context) error {
// Get all imported modules // Get all imported modules
func (a *action) runGetImportedModules(c *cli.Context) (map[string]Module, error) { func (a *action) runGetImportedModules(c *cli.Context) (map[string]Module, error) {
goListAllArgs := []string{"list", "-m", "-json", "all"} goListAllArgs := []string{"list", "-m", "-json", "-mod=readonly", "all"}
goOutput, err := exec.CommandContext(c.Context, "go", goListAllArgs...).CombinedOutput() goOutput, err := exec.CommandContext(c.Context, "go", goListAllArgs...).CombinedOutput()
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to run go %s: %w", strings.Join(goListAllArgs, " "), err) return nil, fmt.Errorf("failed to run go %s: %w", strings.Join(goListAllArgs, " "), err)