Skip to content

motis-project/pkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4884b2b · Feb 10, 2025
Feb 10, 2025
Jun 3, 2024
Jun 3, 2024
Jun 3, 2024
Dec 19, 2020
Jun 3, 2024
Oct 25, 2019
Sep 15, 2021
Sep 16, 2021
Mar 24, 2020
Jan 21, 2025

Repository files navigation

pkg is a simple, minimal dependency manager based on Git.

It clones your cycle-free dependency tree recursively and creates a CMakeLists.txt file with all dependencies in topological order.

Example .pkg file:

[fmt]
  url=git@github.com:motis-project/fmt.git
  branch=master
  commit=3eca62d66c7c9a2ca97dc8381299d911978b9fb2

Useful commands

After invoking CMake, the pkg binary executable can be found in build/dl/.

Displaying the dependency tree

pkg -s

Syncing deps/

After updating a commit ID in the .pkg file, you can pkg -l to establish the dependency tree state described in the .pkg file. Effectively, git repositories will be updated in deps/.

You can use -f to force checkout the commits.

Warning

This will override the changes you made, so be careful.