Skip to content

Commit

Permalink
feat: skip gno.mod in ReadMemPackage (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jul 9, 2024
1 parent 40a4e30 commit 8446881
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gnovm/pkg/gnolang/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ func PackageNameFromFileBody(name, body string) Name {
// ReadMemPackage initializes a new MemPackage by reading the OS directory
// at dir, and saving it with the given pkgPath (import path).
// The resulting MemPackage will contain the names and content of all *.gno files,
// and additionally README.md, LICENSE, and gno.mod.
// and additionally README.md, LICENSE.
//
// ReadMemPackage does not perform validation aside from the package's name;
// the files are not parsed but their contents are merely stored inside a MemFile.
Expand All @@ -1111,7 +1111,6 @@ func ReadMemPackage(dir string, pkgPath string) *std.MemPackage {
panic(err)
}
allowedFiles := []string{ // make case insensitive?
"gno.mod",
"LICENSE",
"README.md",
}
Expand Down

0 comments on commit 8446881

Please sign in to comment.