diff --git a/gnovm/cmd/gno/mod.go b/gnovm/cmd/gno/mod.go index c49b64619bf..b9d612f1c2a 100644 --- a/gnovm/cmd/gno/mod.go +++ b/gnovm/cmd/gno/mod.go @@ -231,7 +231,7 @@ func execModTidy(args []string, io commands.IO) error { gm.DropRequire(r.Mod.Path) } - imports, err := getGnoModuleImports(wd) + imports, err := getGnoPackageImports(wd) if err != nil { return err } @@ -312,7 +312,7 @@ func execModWhy(args []string, io commands.IO) error { // - https://github.com/gnolang/gno/issues/852 // // TODO: move this to better location. -func getGnoModuleImports(path string) ([]string, error) { +func getGnoPackageImports(path string) ([]string, error) { entries, err := os.ReadDir(path) if err != nil { return nil, err diff --git a/gnovm/cmd/gno/mod_test.go b/gnovm/cmd/gno/mod_test.go index a589cabf0cc..789bba61146 100644 --- a/gnovm/cmd/gno/mod_test.go +++ b/gnovm/cmd/gno/mod_test.go @@ -350,7 +350,7 @@ func TestGetGnoImports(t *testing.T) { require.NoError(t, err) } - imports, err := getGnoModuleImports(tmpDir) + imports, err := getGnoPackageImports(tmpDir) require.NoError(t, err) require.Equal(t, len(expected), len(imports))