Skip to content
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

Allow extensions to override download URLs #187

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

asgrim
Copy link
Collaborator

@asgrim asgrim commented Feb 4, 2025

Fixes #39

docs/extension-maintainers.md Outdated Show resolved Hide resolved
docs/extension-maintainers.md Outdated Show resolved Hide resolved
@asgrim asgrim force-pushed the override-source-download-urls branch from ba9c76b to 36da7b2 Compare February 5, 2025 10:26
@asgrim asgrim force-pushed the override-source-download-urls branch from 6af069d to 70639a7 Compare February 6, 2025 09:33
@@ -28,7 +28,7 @@
],
"require": {
"php": "8.1.*||8.2.*||8.3.*||8.4.*",
"composer/composer": "^2.8.5",
"composer/composer": "dev-main",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably pin to the next stable Composer release, when that happens 👍

Copy link

@stof stof Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using ^2.9.0@dev instead as constraint here. It will be more explicit about the intent

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^2.8.6@dev

Comment on lines +163 to +167
The `build-path` may contain some templated values which are replaced:

* `{version}` to be replaced with the package version. For example a package
with version 1.2.3 with a `build-path` of `myext-{version}` the actual build
path would become `myext-1.2.3`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build-path could be detected: if the root directory doesn't contain a configure file but there is a single directory that contains this file, then go into it.

For the mongodb extension, the build-path is at the root of the Git repository, so this setting seems incompatible with installation from Git clone.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Leave it with me and I'll see what we can do, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate if git submodules can be included
5 participants