Skip to content

Commit 82b7ef8

Browse files
committed
chore: don't override name if not requested
Signed-off-by: Norman <norman@samourai.coop>
1 parent c7edab0 commit 82b7ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gno.land/pkg/integration/pkgloader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (pl *PkgsLoader) LoadPackage(pkgDir string, name string) error {
104104
}
105105

106106
for _, pkg := range pkgs {
107-
if pkg.Dir == pkgDir {
107+
if pkg.Dir == pkgDir && name != "" {
108108
pkg.ImportPath = name
109109
}
110110
if gnolang.IsStdlib(pkg.ImportPath) {

0 commit comments

Comments
 (0)