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

Dynamic path resolution based on project metadata #540

Open
andrewnicols opened this issue Nov 13, 2024 · 0 comments
Open

Dynamic path resolution based on project metadata #540

andrewnicols opened this issue Nov 13, 2024 · 0 comments

Comments

@andrewnicols
Copy link

andrewnicols commented Nov 13, 2024

Hi,

I'm one of the core team working on https://github.com/moodle/moodle/.

I'm trying to improve our composer integrations in coming releases and I'd ideally like to make use of composer/installers to do so.

In Moodle we have maintain a list of all valid plugin types within our repository in a combination of {{components.json}} and {{subplugins.json}} files.

At the moment none of the installers here use a list sourced from the project itself, but I wonder if that is something you would be open to.

I've pushed a commit to my fork of this repo (andrewnicols@moodlePathFromJson) as a proof-of-concept.

https://github.com/andrewnicols/installers/blob/3a0d155d3532227bee73a751e3c96e16af0df610/src/Composer/Installers/MoodleInstaller.php#L81-L136

I haven't written unit tests for this yet.

Let me know if this kind of integration would be acceptable, or whether this would be best placed into a custom installer instead.

@andrewnicols andrewnicols changed the title Dynamic path resolution Dynamic path resolution based on project metadata Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant