Skip to content

Commit

Permalink
fix(txtar): ignore filetests when loading packages (#3550)
Browse files Browse the repository at this point in the history
## Description

Addresses: #3546
  • Loading branch information
leohhhn authored Jan 19, 2025
1 parent d2813f8 commit 7a397a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gno.land/pkg/integration/pkgloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (pl *PkgsLoader) LoadPackage(modroot string, path, name string) error {
if err != nil {
return fmt.Errorf("unable to load package imports in %q: %w", currentPkg.Dir, err)
}
imports := importsMap.Merge(packages.FileKindPackageSource, packages.FileKindTest, packages.FileKindFiletest)
imports := importsMap.Merge(packages.FileKindPackageSource, packages.FileKindTest)
for _, imp := range imports {
if imp.PkgPath == currentPkg.Name || gnolang.IsStdlib(imp.PkgPath) {
continue
Expand Down
3 changes: 3 additions & 0 deletions gno.land/pkg/integration/testdata/issue_3546.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
loadpkg gno.land/r/gov/dao/v2

gnoland start

0 comments on commit 7a397a2

Please sign in to comment.