-
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
Investigate if git submodules can be included #39
Comments
I think this may now be possible with the following changes:
I think add a {
"name": "somevendor/ourextension",
...
"php-ext": {
"has-git-submodules": true,
}
} |
I like the |
I wonder, as a package owner, we could generate a source-code archive ourselves, that would include the submodules we need, and add it to the release assets. In the same way that pie searches the matching assets for Windows, pie could look for a "source.zip" archive before downloading the default release archive. I imagine this poses a problem of traceability, since it's possible to publish different code from what is in Git. But it's not worse than compiled versions for Windows. Apart from that, I see no reason not to. |
Isn't it discouraging for package owners to have to generate an additional source code archive in the release assets? It may be less smooth than just publishing a new tag and that's it. I'd say a |
From our perspective, it's the easiest approach since we already provide a signed source archive. |
Example in the release 1.20.1:
There is a shared Github Action that php extension developers can use? Awesome.
We need a convention for the name, there is already one for the windows Zips. |
I'd suggest holding off making any further changes for now, @alexandre-daubois, until consensus is achieved on the approach & we have a firm implementation plan, I don't want your efforts & time to be wasted if a different approach is taken.
This could certainly be an option; a similar approach to what we have in the
Yes I agree; I propose therefore:
|
As far as I understand of this, Composer handles both formats. Pie could definitely support both 🙂 |
This the easiest solution for us. But I would keep Tar format. This is the most obvious format for Unix systems and supported natively by PHP, while Zip requires the zip extension. The format would be: And we only have to change the name of the archive we already generate. The big advantage is that we can add the assets retroactively on versions that have already been released. I don't think we can change the |
At the moment, PIE downloads the ZIP archive, which doesn't include git submodules. mongodb does use submodules for the C libs to be included.
The
.gitmodules
file is present, however, the revision information is kept in.git
which isn't included in the Zip archive.The text was updated successfully, but these errors were encountered: