justdeps.com

Just Deps

Use just and git subtree to vendor upstream deps.

Setup

Create or add to your Justfile:

curl -fSsL justdeps.com/Justfile

Create an empty deps.tsv if needed:

# name	git_uri	ref

Create a target dir for the dependencies:

mkdir thirdparty
touch thirdparty/.gitkeep

And add the script to scripts/deps.sh:

curl -fSsL justdeps.com/scripts/deps.sh -o ./scripts/deps.sh --create-dirs
chmod +x ./scripts/deps.sh

Run

To add a dependency, add it to deps.tsv or run (e.g.):

just deps-add https://github.com/.../... v0.8.8 foobar

To refresh all (only really makes sense for branch deps, not tags):

just deps-refresh
# or just deps-refresh foobar fizzbuzz ...