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

Paket install enters an endless loop #2082

Closed
thingylab opened this issue Dec 17, 2016 · 0 comments
Closed

Paket install enters an endless loop #2082

thingylab opened this issue Dec 17, 2016 · 0 comments

Comments

@thingylab
Copy link
Contributor

Description

paket install and paket update started hanging while looking for a specific package hosted on a local artifactory (version = 4.6.0).

Repro steps

I do not have specific steps to reproduce the issue as other packages hosted on the same artifactory server work just fine.
This being said, on close inspection it appeared the followODataLink function (in NuGetV2.fs) entered an endless loop. In effect the behavior was:

let rec followODataLink inputUrl =
    let data = fetchData inputUrl
    let urls = extractUrlsFromData
    let res = List.map followODataLink urls
    
    [do some other stuff here]

It appears in my case inputUrl was included in the resulting urls, sending the function into an infinite loop.

Expected behavior

paket install finishing in finite time

Actual behavior

Endless loop.

Known workarounds

Filter out the input url from the recursive calls. See this PR.

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

No branches or pull requests

1 participant