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

Cyclic dependency with filetests #3546

Closed
leohhhn opened this issue Jan 19, 2025 · 1 comment
Closed

Cyclic dependency with filetests #3546

leohhhn opened this issue Jan 19, 2025 · 1 comment
Assignees

Comments

@leohhhn
Copy link
Contributor

leohhhn commented Jan 19, 2025

Description

Cross-posting from #3166 (comment)

Affects #3166 & #3523

I found an issue in how packages are loaded during txtar, that creates cyclic dependencies, specifically related to filetests:

  • in r/gov/dao/v2/prop1_filetest.gno, we import, say r/sys/validators
  • r/sys/validators imports r/gov/dao/bridge
  • r/gov/dao/bridge imports r/gov/dao/v2 package
  • which, because of the r/gov/dao/v2/prop1_filetest.gno file, technically, even though filetests are seen as "outside" packages (ie not part of the one found in the same dir), imports r/sys/validators, creating a cyclic dependency error.

This simple txtar fails on master:

loadpkg gno.land/r/gov/dao/v2

gnoland start

Removing filetests in r/gov/dao/v2 makes the txtar above pass on master.

I could be wrong but I assume it's related to the fact that filetests are not properly ignored during package loading, at least during testing.

cc @gfanton @thehowl

@leohhhn
Copy link
Contributor Author

leohhhn commented Jan 22, 2025

Fixed in #3550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant