Create a source plugin that scans for locally installed recipes

Created on 9 January 2024, over 1 year ago

Problem/Motivation

As part of allowing Project Browser to install recipes, we'll need to provide a source plugin that can expose recipes.

Recipes are currently not exposed by drupal.org, or by any API I'm aware of, so for the time being I think it's okay to just scan the local filesystem for recipes, and have the source list those. Recipes will be located in /PATH/TO/DRUPAL/recipes, and will be identifiable by the presence of a recipe.yml file. The machine name of the recipe is probably the name of the directory containing recipe.yml, and the Composer namespace can be read from the composer.json.

I don't think we need to expose this in the UI right now; let's just see if we can create a kernel test which confirms that the source returns Project objects for all recipes which are present in the filesystem.

I'm also aware that a bunch of questions and probable blockers will arise while we work on this, but we'll handle those as they arise. :)

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024