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

New update mechanism (#68) breaks conditional prefetch #115

Closed
leotaku opened this issue Aug 7, 2019 · 5 comments · Fixed by #120
Closed

New update mechanism (#68) breaks conditional prefetch #115

leotaku opened this issue Aug 7, 2019 · 5 comments · Fixed by #120

Comments

@leotaku
Copy link
Contributor

leotaku commented Aug 7, 2019

I recently noticed that the new update mechanism implemented in #68 removes the "only prefetch when url has changed" functionality introduced in #24. I personally think that this feature is pretty useful, so maybe we could have it be reintroduced?

PS: I am currently assuming that the feature hasn't been implemented in the never version, rather than it just being bugged and not working. I couldn't see any code related to it when skimming the source, but maybe this is really a bug.

@leotaku leotaku changed the title New update mechanism (#68) breaks conditional prefetch (#23) New update mechanism (#68) breaks conditional prefetch Aug 7, 2019
@nmattia
Copy link
Owner

nmattia commented Aug 17, 2019

(Looks like I missed the notification, sorry for the delay)

Odd, that shouldn’t be the case. The whole point of the new update mechanism is to perform as little IO as necessary. Do you have some steps I can use to reproduce?

@leotaku
Copy link
Contributor Author

leotaku commented Aug 17, 2019

Here are some simple steps to reproduce my issue (using the current master, but I have bisected through the git log and this should work with any commit after the new update mechanism):

  • Go to a new folder
  • niv init - Everything gets fetched (as it should)
  • niv update - Everything gets fetched again
  • niv update - Same as above

@nmattia
Copy link
Owner

nmattia commented Sep 8, 2019

Woops, dropped the ball on this. You're right, there's something wrong. Looking.

@nmattia
Copy link
Owner

nmattia commented Sep 8, 2019

@leotaku can you try https://github.com/nmattia/niv/tree/nm-too-many-fetches ( #120 ) ?

@leotaku
Copy link
Contributor Author

leotaku commented Sep 8, 2019

Thank you! I tested using the pull and everything seems to be working now!

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

Successfully merging a pull request may close this issue.

2 participants