Skip to content

Commit

Permalink
fix: empty package in run command
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Feb 7, 2025
1 parent 385a3a8 commit 70c02c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gno.land/pkg/keyscli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ func execMakeRun(cfg *MakeRunCfg, args []string, cmdio commands.IO) error {
}
}
}

memPkg.Name = "main"
if memPkg.IsEmpty() {
panic(fmt.Sprintf("found an empty package %q", memPkg.Path))
}

memPkg.Name = "main"
// Set to empty; this will be automatically set by the VM keeper.
memPkg.Path = ""

Expand Down

0 comments on commit 70c02c6

Please sign in to comment.