Skip to content

Commit

Permalink
s/getGnoModuleImports/getGnoPackageImports
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Feb 12, 2024
1 parent 44690ae commit 6530315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gnovm/cmd/gno/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6530315

Please sign in to comment.