Closed dcombslinkedin closed 5 years ago
@dcombslinkedin nice, but it looks like there are some new failing tests, mind fixing?
Thanks, Stef. As I haven't found a way to run checks for lint or es5 against the module (is there one?), it's been a one-at-a-time parade of fixes. Working on the latest update now.
stefanpenner closed this 20 seconds ago
Hmm, i have no memory of this...
@dcombslinkedin broadly this looks good, I left some nit-picks and touch ups. Do to the size of the change, I'll need to spend some extra time with it yet, I hope to have my review complete by EOD.
I've restarted the windows tests.
Thanks, Stef. I'm heading up to Redmond today for a MS conf on 1ES/1DS and some other build stuff tomorrow. I'll try to get changes in tonight after I arrive, so I should have something for you either tonight or Friday morning.
@dcombslinkedin I've fixed my above nit-picks, and forced push.
I am refactoring/extracting and writing tests, so we can have confidence in the various algorithms
I've made the following changes:
hashForDep
now selects between the global cache or a function allocated local cache. This removes the need to manage the global state, instead allowing the GC to handle it all for us.@dcombslinkedin after implementing the missing tests, can you investigate the windows failures? I have confirmed prior to your additions, the windows tests were not hanging. I have also ensured they are green on master: https://ci.appveyor.com/project/embercli/hash-for-dep/builds/22008926
I'm making a few changes in addition to addressing the items above. New changes include:
looks like windows is green!
Yeah, the change to force core.symlinks to true seems to have done it. I'll remove the debug stuff and probably add a couple more tests and push one more time for your (hopefully last) review.
Ignore this if it passes - forgot an 'it.only' and to squash things. Doing that now.
I'm going to try to squash, but have been having issues with it. Wish me luck!
released as v1.4.0 🎉
Most code now in index.js.
Left code in lib that is still used externally (e.g. deps-for, resolve-pkg, pkg) that is no longer needed for hash-for-dep itself.