Problem/Motivation

In \Drupal\package_manager\Stage::require we have the comment

The packages to add as regular top-level dependencies, in the form 'vendor/name:version'.

In AutoUpdates we always send the version but I think it should work without the version. just in vendor/package format

this is needed for Project Browser in #3306722: Update Installer service to work without requiring to specify the package version

Proposed resolution

Just document that vendor/package:version or vendor/package will work

Remaining tasks

In Composer of just using a version constraint like vendor:package:8.9.0 or vendor:package:^8 you could also send "vendor:package:^8 || ^9" I am not sure if that would cause a problem because of the space.

If this does not work now with Stage lets not fix it in this issue(if need to support it all) but just document the limitations.

Other modules could extend extend stage pass other require/update comments to Composer Stager so we don't have support all cases in the MVP(or ever)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tedbow created an issue. See original summary.

tedbow’s picture

phenaproxima’s picture

+1 for this change.

phenaproxima’s picture

Status: Active » Needs work
Issue tags: -Package Manager integration in Project Browser

I think this is a pretty simple change.

Right now, \Drupal\package_manager\Stage::require() says, in a couple of places in its doc comment, something like this:

The packages to add, in the form 'vendor/name:version'.

I would change it to say something like:

The packages to add, with or without version constraints, e.g. `vendor/name` or `vendor/name:version`.

We'll want to change it in both places, keeping the existing phrasing that makes runtime/top-level dependencies distinct from dev dependencies.

I'm also removing the tag for Project Browser integration because as far as I know, this blocks nothing; it's merely a documentation issue.

Theresa.Grannum made their first commit to this issue’s fork.

Theresa.Grannum’s picture

Assigned: Unassigned » Theresa.Grannum
Theresa.Grannum’s picture

Status: Needs work » Needs review
phenaproxima’s picture

Status: Needs review » Needs work

One request, for consistency. Otherwise I think this is ready.

Theresa.Grannum’s picture

Status: Needs work » Needs review
phenaproxima’s picture

Status: Needs review » Reviewed & tested by the community

Looks great to me. Merging if tests pass.

phenaproxima’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 8.x-2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

tedbow’s picture

Issue tags: +core-mvp