-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download Git submodules #160
base: main
Are you sure you want to change the base?
Conversation
ping @alcaeus |
Full log of failed build
|
You can't just take the last commit from the main branch, you need the exact commit that was committed. Maybe we could specify the commit in the |
It seems you can provide |
$downloadedPackage->extractedSourcePath, | ||
)); | ||
|
||
$git = GitBinaryPath::fromGitBinaryPath('/opt/homebrew/bin/git'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is specific to macOS package manager, it won't work on other systems.
I'm not even sure it is needed to specify git path as it should be in $PATH
of the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes indeed, it was for test purposes to validate the implementation. Thanks for spotting it 👍
Fix #39
As stated in the issue, the .git isn't present in the ZIP archived downloaded from Github. This makes not possible to use
git submodules update...
.Here is the approach I propose: manually parse the .gitmodules (which isn't a complicated format so it works well), then recursively go through those modules and
git clone
each of them.Try this out with :
bin/pie build mongodb/mongodb-extension
. Note that you may still have an error with this particular extension, but it is not related to this dev. But that's the only extension I found for now that uses submodules 😄It would be nice to update
asgrim/example-pie-extension
to add a.gitmodules
to test this in the behavioral tests.