Page MenuHomePhabricator

Packages: Load'em from .cache
Needs ReviewPublic

Authored by avivey on Oct 30 2020, 4:34 PM.
Tags
None
Referenced Files
F19811143: D21485.diff
Mar 3 2026, 10:52 PM
F19795453: D21485.diff
Feb 26 2026, 11:18 PM
F19772779: D21485.diff
Feb 20 2026, 8:26 PM
F19529833: D21485.diff
Jan 19 2026, 7:01 PM
F19526658: D21485.diff
Jan 18 2026, 7:00 PM
F19195439: D21485.id51138.diff
Dec 16 2025, 12:11 PM
F19041312: D21485.id.diff
Nov 26 2025, 3:35 PM
F19033556: D21485.diff
Nov 25 2025, 10:49 AM
Subscribers

Details

Summary

This is the basis of the client-side support for Packages:

  • Installed packages are under ~/.cache/arcanist-packages/<identifier>-<version>.
  • A package has a manifest file called .arcpackage.
  • A package can be Requested from any config source, as packages, an array of objects.

This change includes:

  • loading requested packages that are installed
  • list all installed packages
  • a flow to install a package (but not to configure loading it).

To configure a package, this goes in any config file:

{
  "packages": [
    {
      "identifier": "pk1",
      "version": "1.12"
    },
    {
      "identifier": "aviv.demo1",
      "version":"1.0"
    }
  ]
}

and a manifest looks like this:

.arcpackage
{
    "identifier": "aviv.demo1",
    "version": "1.0",
    "Description": "An important demo package"
}

The --install-from-tgz flow is obviously just temporary, to be replaced later with better setup.

Test Plan

image.png (159×853 px, 24 KB)

Also used --install-from-tgz on a package.

Diff Detail

Repository
rARC Arcanist
Branch
packages
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/packages/ArcanistPackagesLoader.php:68XHP16TODO Comment
Advicesrc/workflow/ArcanistPackagesWorkflow.php:157XHP16TODO Comment
Advicesrc/workflow/ArcanistPackagesWorkflow.php:182XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 24952
Build 34426: Run Core Tests
Build 34425: arc lint + arc unit