-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: main
Are you sure you want to change the base?
Conversation
test/unit/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListenerTest.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Christophe Coevoet <[email protected]>
ba9c76b
to
36da7b2
Compare
6af069d
to
70639a7
Compare
@@ -28,7 +28,7 @@ | |||
], | |||
"require": { | |||
"php": "8.1.*||8.2.*||8.3.*||8.4.*", | |||
"composer/composer": "^2.8.5", | |||
"composer/composer": "dev-main", |
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.
We should probably pin to the next stable Composer release, when that happens 👍
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.
I suggest using ^2.9.0@dev
instead as constraint here. It will be more explicit about the intent
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.
^2.8.6@dev
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`. |
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.
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.
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.
Good idea! Leave it with me and I'll see what we can do, thank you
Fixes #39