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

downloadDeps should detect infinite recursion #3903

Open
thehowl opened this issue Mar 10, 2025 · 0 comments
Open

downloadDeps should detect infinite recursion #3903

thehowl opened this issue Mar 10, 2025 · 0 comments
Assignees

Comments

@thehowl
Copy link
Member

thehowl commented Mar 10, 2025

A package with these settings:

module gno.land/tests/replaceavl

replace (
	"gno.land/p/demo/avl" => "gno.land/r/sys/users"
)
package main

import (
	avl "gno.land/p/demo/avl"
)

var foo = avl.RegisterUser

Hangs, because replaceavl imports r/sys/users, which in turn wants to import avl but it gets replaced with itself.

We should be able to detect this.

cc @n0izn0iz

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

No branches or pull requests

2 participants