Skip to content

Commit ac77cc7

Browse files
committed
A note on git and github in extra-deps
1 parent d2c700f commit ac77cc7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/pantry.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,21 @@ extra-deps:
206206
commit: a5f4f30f01366738f913968163d856366d7e0342
207207
~~~
208208

209+
!!! note
210+
211+
`github` is not just syntactic sugar over `git`. It uses a completely
212+
different approach to get the package's code − instead of cloning the
213+
repo, it downloads an archive that is provided by GitHub. This can be more
214+
efficient than cloning, as no revision history is downloaded.
215+
216+
On the other hand, if the dependency's repo contains git submodules, the
217+
only option is to use `git` as it clones the repo and updates its
218+
submodules.
219+
220+
Try to use `git` instead of `github` if the package build fails due to
221+
some files are missing.
222+
223+
209224
#### git-annex
210225

211226
[git-annex](https://git-annex.branchable.com) is not supported. This is because

0 commit comments

Comments
 (0)