Skip to content

Commit 64bdf56

Browse files
authored
Merge pull request #6037 from jorpic/docs/issue5603
Document a difference between `git` and `github` in `extra-deps`
2 parents 48d82be + ac77cc7 commit 64bdf56

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
@@ -210,6 +210,21 @@ extra-deps:
210210
commit: a5f4f30f01366738f913968163d856366d7e0342
211211
~~~
212212

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

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

0 commit comments

Comments
 (0)