Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skip gno.mod in ReadMemPackage #2559

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading