From 8446881ac311a777847d853bec2ac7dc72551c19 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:19:50 -0700 Subject: [PATCH] feat: skip `gno.mod` in ReadMemPackage (#2559) https://github.com/gnolang/gno/pull/2508#discussion_r1671169496 --- gnovm/pkg/gnolang/nodes.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnovm/pkg/gnolang/nodes.go b/gnovm/pkg/gnolang/nodes.go index eb51f890072..a68e3ba9d0b 100644 --- a/gnovm/pkg/gnolang/nodes.go +++ b/gnovm/pkg/gnolang/nodes.go @@ -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. @@ -1111,7 +1111,6 @@ func ReadMemPackage(dir string, pkgPath string) *std.MemPackage { panic(err) } allowedFiles := []string{ // make case insensitive? - "gno.mod", "LICENSE", "README.md", }