Skip to content

How to make formula resolve git submodules? #2100

Discussion options

You must be logged in to vote

You can use a Git clone which automatically resolves submodules. You will need to specify both tag and revision. If the version information isn't recovered correctly from the tag you can also specify the version in the formula manually. For example:

  url "https://github.com/grpc/grpc.git",
      tag:      "v1.39.1",
      revision: "2d6b8f61cfdd1c4d2d7c1aae65a4fbf00e3e0981"
  version "1391"

Note that Git clones are much slower and worse for caching than tarballs.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by itsmattkc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants