dwyl / learn-aws-lambda

✨ Learn how to use AWS Lambda to easily create infinitely scalable web services
1.05k stars 202 forks source link

Codeship Tests Fail because package.json was deleted ... #64

Closed nelsonic closed 8 years ago

nelsonic commented 8 years ago

our package.json file was (accidentally?) deleted in: https://github.com/dwyl/learn-aws-lambda/commit/ff9d15ad6d8335e11065521870e3ae55a5f9bb5a

I'm partly to shame for merging the PR: https://github.com/dwyl/learn-aws-lambda/pull/56/files But in my defence I thought it was because serverless was handling its dependencies a diff way...

nelsonic commented 8 years ago

Solution:

git checkout $(git rev-list -n 1 HEAD -- "package.json")^ -- "package.json"

see: http://stackoverflow.com/questions/953481/find-and-restore-a-deleted-file-in-a-git-repository