#7

Adopt Composer 2.11 compatibility, security fixes, and platform-check caching

Openshyimwants to merge intofrom

Riff now adopts the relevant Composer 2.11.0/2.11.1 fixes and closes the strict PSR autoloading and inferred pre-1.0 constraint gaps. For example, requiring a path package at 0.1.3 now records ^0.1.3.

Changes

  • Validate installed package names and target directories before filesystem operations; redact VCS credentials and omit transport headers from lockfiles.

  • Correct GitLab CI token handling, validate credential/header configuration, and keep authenticated repository metadata out of shared caches with same-origin private redirects.

  • Preserve empty manifest sections, support array and dotted config mutations, retain nested script argument quoting, filter archive metadata, and warn about WSL cache placement.

  • Support strict-psr-autoloader configuration and install/update flags. Root PSR violations return exit 6 for install/update and exit 1 for dump-autoload after autoload files and post-autoload scripts are completed; vendor violations are excluded.

  • Cache platform requirement checks within candidate selection, with an uncached fallback after 64 consecutive misses.

  • Preserve quoted PHP scripts and shell operators on Windows by passing composed expressions verbatim to cmd.exe. Update the pinned setup-php action to 2.40.0 to restore PHP installation on hosted macOS runners.

Validation

  • mise exec -- make check: formatting, Clippy across all targets/features with warnings denied, full workspace tests (2,276 passed, 10 ignored), locked release build, and Homebrew packaging checks passed.
  • Before removing the standalone comparison script, all 13 focused differential cases against Composer 2.11.1 passed. The retained Rust regressions cover strict PSR exit codes, artifacts, and lifecycle scripts through flags and configuration.
  • The complete mutation differential suite passed. Config defaults/source listings now match; its sole remaining failure is the intentional TLS warning branding difference (Riff versus Composer).
  • Composer inventories passed against the repository's pinned upstream snapshot with zero pending classifications.

Nested array removals intentionally preserve arrays rather than reproducing Composer's fast-path conversion to numeric-key objects. This change does not claim complete Composer feature or output parity. Hosted CI passed on commit 0984092: Linux, macOS, and Windows workspace tests, quality checks, Composer inventories, release build, and the final aggregate gate.

The final cleanup removes the standalone differential script, benchmark example, and new profiling artifacts; documentation points to the retained Rust regression suites. Cargo metadata and whitespace/reference checks passed for this cleanup. CI is rerunning for 60c4ae3.

Activity

0

No activity yet.