LoopPerfect / buckaroo

The decentralized package manager for C++ and friends 🏝️
https://buckaroo.pm
MIT License
935 stars 33 forks source link

Lock the cookbook versions in the project #52

Closed njlr closed 7 years ago

njlr commented 7 years ago

How it might look in buckaroo.json:

{
  "name": "My Project",
  "cookbooks": {
    "buckaroo-official": {
      "repository": "git@github.com:LoopPerfect/buckaroo-recipes.git", 
      "branch": "master",
      "version": "735e204ab85cb8ace8af6e928051d626e491afc2"
    }
  },
...

We should track the branch because this allows us to upgrades.

njlr commented 7 years ago

Each entry in "cookbooks' is an alias on the location. We should update the dependency definition to contain the alias.

For example:

  "dependencies": {
    "buckaroo-official/google/gson": "1.0.0"
  },
njlr commented 7 years ago

Instead of this approach, 1.2.0 will use a lock file.