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

Infinite loop in glide list and glide tree #136

Closed
suguru opened this issue Nov 7, 2015 · 3 comments
Closed

Infinite loop in glide list and glide tree #136

suguru opened this issue Nov 7, 2015 · 3 comments
Labels

Comments

@suguru
Copy link

suguru commented Nov 7, 2015

When I import packages like "golang.org/x/oauth2", glide list and glide tree cause infinite loop.

import (
    "golang.org/x/oauth2"
)
...

glide tree outputs result like this and never ends.

    golang.org/x/oauth2   (/gocode/src/golang.org/x/oauth2)
        golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/oauth2/internal   (/gocode/src/golang.org/x/oauth2/internal)
            golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/oauth2/internal   (/gocode/src/golang.org/x/oauth2/internal)
            golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/oauth2/internal   (/gocode/src/golang.org/x/oauth2/internal)
            golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
        golang.org/x/oauth2/jws   (/gocode/src/golang.org/x/oauth2/jws)
        golang.org/x/oauth2/jwt   (/gocode/src/golang.org/x/oauth2/jwt)
            golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
            golang.org/x/oauth2   (/gocode/src/golang.org/x/oauth2)
                golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
                golang.org/x/oauth2/internal   (/gocode/src/golang.org/x/oauth2/internal)
                    golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
                golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
                golang.org/x/oauth2/internal   (/gocode/src/golang.org/x/oauth2/internal)
                    golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
                golang.org/x/net/context   (/gocode/src/golang.org/x/net/context)
                ...
@technosophos
Copy link
Member

Thanks. I'll take a look at that. This is with 0.7.0, right?

@suguru
Copy link
Author

suguru commented Nov 8, 2015

Yes. This is with 0.7.0. glide guess works without any problems.

@mattfarina
Copy link
Member

@technosophos seems we'll need some kind of recursion detection. I'm shooting for a bug fix release on Tuesday. Since we have an example I think we can fix it for that. I'm happy to take a shot at it on Monday unless you want to tackle it.

@suguru thanks for bringing this to our attention.

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

No branches or pull requests

3 participants