It is a strange error.
> cp: cannot stat 'vendor/codeigniter4/framework/app/': No such file or directory
Why don't you have vendor/codeigniter4/framework/app/ ?
I tried and got the following.
Code:
$ vendor/bin/patch
git version 2.35.3
Composer version 2.3.9 2022-07-05 16:52:11
************************************
* CONFIGURATION *
************************************
Scripts Directory: /Users/kenji/tmp/ci419/vendor/tatter/patches/src
Project Directory: /Users/kenji/tmp/ci419
Target Version:
Current Version:
Source Package: codeigniter4/framework
Base Branch: main
Selected Items: app/ public/ env spark
************************************
* STAGING *
************************************
Switched to a new branch 'tatter/scratch'
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading codeigniter4/framework (v4.1.9 => v4.2.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Upgrading codeigniter4/framework (v4.1.9 => v4.2.1): Extracting archive
Generating autoload files
28 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
[tatter/scratch eeba37b] Patch framework
26 files changed, 1330 insertions(+), 1223 deletions(-)
rewrite Views/errors/html/debug.css (79%)
rewrite Views/errors/html/debug.js (90%)
rewrite Views/errors/html/error_404.php (95%)
rewrite Views/errors/html/error_exception.php (82%)
rewrite Views/errors/html/production.php (84%)
rewrite Views/welcome_message.php (97%)
Switched to a new branch 'tatter/patches'
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 0 installs, 1 update, 0 removals
- Downgrading codeigniter4/framework (v4.2.1 => v4.1.9): Extracting archive
Generating autoload files
28 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
************************************
* MERGING *
************************************
[tatter/patches f33802b] Patch framework
Date: Thu Jul 14 16:04:32 2022 +0900
26 files changed, 1330 insertions(+), 1223 deletions(-)
rewrite app/Views/errors/html/debug.css (79%)
rewrite app/Views/errors/html/debug.js (90%)
rewrite app/Views/errors/html/error_404.php (95%)
rewrite app/Views/errors/html/error_exception.php (82%)
rewrite app/Views/errors/html/production.php (84%)
rewrite app/Views/welcome_message.php (97%)
************************************
* SUCCESS *
************************************
Patch successful! Updated files are available on branch tatter/patches.
Deleted branch tatter/scratch (was eeba37b).
Code:
$ git diff main...tatter/patches --name-only
app/Config/App.php
app/Config/Constants.php
app/Config/ContentSecurityPolicy.php
app/Config/Database.php
app/Config/Events.php
app/Config/Feature.php
app/Config/Filters.php
app/Config/Format.php
app/Config/Logger.php
app/Config/Mimes.php
app/Config/Publisher.php
app/Config/Routes.php
app/Config/Security.php
app/Config/Validation.php
app/Config/View.php
app/Controllers/BaseController.php
app/Views/errors/html/debug.css
app/Views/errors/html/debug.js
app/Views/errors/html/error_404.php
app/Views/errors/html/error_exception.php
app/Views/errors/html/production.php
app/Views/welcome_message.php
env
public/index.php
spark
writable/cache/index.html