Skip to content

Commit

Permalink
fix: validate module path
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Aug 1, 2023
1 parent 791996d commit fa7fc5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnovm/pkg/gnomod/gnomod.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ func CreateGnoModFile(rootDir, modPath string) error {
}
modPath = string(pkgName)
}
if err := module.CheckPath(modPath); err != nil {
return err
}

modFile := &File{
Module: &modfile.Module{
Expand Down

0 comments on commit fa7fc5a

Please sign in to comment.