Page MenuHomePhabricator

manageForeignResources description formatting issues
Closed, ResolvedPublic

Description

$ php maintenance/manageForeignResources.php --help

ERROR: Argument <action> is required!


Manage foreign resources registered with ResourceLoader.

This helps developers with downloading, verifying, and updating local copies of
upstream
libraries registered as ResourceLoader modules. See
resources/lib/foreign-resources.yaml.

Use the "update" action to download urls specified in foreign-resources.yaml,
and unpack
them to the resources directory. This will also verify them against the
integrity hashes.

Use the "verify" action to verify the files currently in the resources directory
match
what "update" would replace them with. This is effectively a dry-run and will
not change
any module resources on disk.

Use the "make-sri" action to compute an integrity hash for upstreams that do not
publish
one themselves. Add or update the urls foreign-resources.yaml as needed, but
omit (or
leave empty) the "integrity" key. Then, run the "make-sri" action for the module
and
copy the integrity into the file. Then, you can use "verify" or "update"
normally.

Usage: php manageForeignResources.php [--conf|--dbgroupdefault|--dbpass|--dbuser|--globals|--help|--memory-limit|--profiler|--quiet|--server|--verbose|--wiki] <action> [module]

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Reedy triaged this task as Lowest priority.Aug 16 2022, 12:31 PM

Change 823702 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] ManageForeignResources: Better wrap description text

https://gerrit.wikimedia.org/r/823702

Change 823702 merged by jenkins-bot:

[mediawiki/core@master] ManageForeignResources: Better wrap description text

https://gerrit.wikimedia.org/r/823702