You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct the PIE implementation based on testing:
- Use 'download-url-method' instead of 'source-method'
- Tarball naming: {extension-name}-v{version}.tgz (with 'v' prefix)
- Files must be at root level (no parent directories)
- Create tarball from within ext/ directory using 'tar * '
Verified working with PIE 1.2.1 - extension builds and installs successfully.
Copy file name to clipboardExpand all lines: plan.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,10 @@ Set up a new extension repository (`MaxMind-DB-Reader-php-ext`) that uses this r
7
7
8
8
PIE downloads source code as ZIP archives from Composer/GitHub, which don't include git submodule contents. To work around this limitation, we use PIE's built-in support for **pre-packaged source archives**:
9
9
10
-
- Set `"source-method": "pre-packaged-source"` in the `php-ext` section of composer.json
11
-
- The release script creates a tarball: `php_maxminddb-{version}-src.tgz`
12
-
- This tarball includes the full ext/ directory from the submodule
10
+
- Set `"download-url-method": "pre-packaged-source"` in the `php-ext` section of composer.json
11
+
- The release script creates a tarball: `maxminddb-v{version}.tgz`
12
+
- Naming must be: `{extension-name}-v{version}.tgz` (with the `v` prefix)
13
+
- Files must be at root level (no parent directories)
13
14
- It's uploaded as a GitHub release asset
14
15
- PIE automatically detects and uses this pre-packaged source instead of the ZIP archive
15
16
@@ -51,8 +52,7 @@ Initial files needed:
51
52
"priority": 50,
52
53
"support-zts": true,
53
54
"support-nts": true,
54
-
"source-method": "pre-packaged-source",
55
-
"build-path": "MaxMind-DB-Reader-php/ext",
55
+
"download-url-method": "pre-packaged-source",
56
56
"configure-options": [
57
57
{
58
58
"name": "with-maxminddb",
@@ -237,14 +237,15 @@ $notes"
237
237
# Create pre-packaged source tarball for PIE
238
238
# PIE needs this because it doesn't handle git submodules automatically
239
239
echo"Creating pre-packaged source tarball for PIE..."
240
-
pie_tarball="php_maxminddb-${version}-src.tgz"
240
+
pie_tarball="maxminddb-${tag}.tgz"
241
241
242
-
# Create tarball from the ext directory in the submodule
0 commit comments