Skip to content

Conversation

vweevers
Copy link
Contributor

Instead of bundling DynamoDB Local (and trusting PR's of strangers to upgrade it), I'd rather have local-dynamo download the code directly from Amazon. Added benefits:

  • Choose a specific version: launch({ version: "2015-07-16_1.0" })
  • Saves the code globally in ~/.local-dynamo/[version], so it only has to download once. This keeps the package small.

Though I realize this is a significant change (and breaks the API because of asynchronicity), I hope it's worth your consideration. And if not, it could also be adapted to a build script, for easy upgrades.

@cvburgess
Copy link

Hey @vweevers this is a GREAT idea and one my team was talking about. Does your implementation work? Do you mind if we fork?

@vweevers
Copy link
Contributor Author

I haven't used local-dynamo since a short while after submitting this PR. But it worked well. There was one issue with HTTP redirects, in the download module. But that has been fixed.

So if you fork (no need to ask 👍), be sure to update the download and download-status dependencies. One more thing: another dependency, path-exists, switched from callbacks to Promises, so you either need to adapt the code, or pin path-exists to 1.0.0.

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 this pull request may close these issues.

2 participants