Closed vachzar closed 3 months ago
Cannot reproduce. Is it a Git issue?
$ ./vendor/bin/patch -c 4.4.4 -v 4.4.7
git version 2.45.2
Composer version 2.7.7 2024-06-10 22:11:12
PHP version 8.2.20 (/usr/local/Cellar/php@8.2/8.2.20/bin/php)
Run the "diagnose" command to get more detailed diagnostics output.
************************************
* CONFIGURATION *
************************************
Scripts Directory: /Users/kenji/tmp/ci444/vendor/tatter/patches/src
Project Directory: /Users/kenji/tmp/ci444
Target Version: 4.4.7
Current Version: 4.4.4
Source Package: codeigniter4/framework
Base Branch: main
Selected Items: app/ public/ env spark
************************************
* STAGING *
************************************
Switched to a new branch 'tatter/scratch'
rm '.gitignore'
rm 'LICENSE'
rm 'README.md'
rm 'app/.htaccess'
rm 'app/Common.php'
rm 'app/Config/App.php'
rm 'app/Config/Autoload.php'
rm 'app/Config/Boot/development.php'
rm 'app/Config/Boot/production.php'
rm 'app/Config/Boot/testing.php'
rm 'app/Config/CURLRequest.php'
rm 'app/Config/Cache.php'
rm 'app/Config/Constants.php'
rm 'app/Config/ContentSecurityPolicy.php'
rm 'app/Config/Cookie.php'
rm 'app/Config/Database.php'
rm 'app/Config/DocTypes.php'
rm 'app/Config/Email.php'
rm 'app/Config/Encryption.php'
rm 'app/Config/Events.php'
rm 'app/Config/Exceptions.php'
rm 'app/Config/Feature.php'
rm 'app/Config/Filters.php'
rm 'app/Config/ForeignCharacters.php'
rm 'app/Config/Format.php'
rm 'app/Config/Generators.php'
rm 'app/Config/Honeypot.php'
rm 'app/Config/Images.php'
rm 'app/Config/Kint.php'
rm 'app/Config/Logger.php'
rm 'app/Config/Migrations.php'
rm 'app/Config/Mimes.php'
rm 'app/Config/Modules.php'
rm 'app/Config/Pager.php'
rm 'app/Config/Paths.php'
rm 'app/Config/Publisher.php'
rm 'app/Config/Routes.php'
rm 'app/Config/Routing.php'
rm 'app/Config/Security.php'
rm 'app/Config/Services.php'
rm 'app/Config/Session.php'
rm 'app/Config/Toolbar.php'
rm 'app/Config/UserAgents.php'
rm 'app/Config/Validation.php'
rm 'app/Config/View.php'
rm 'app/Controllers/BaseController.php'
rm 'app/Controllers/Home.php'
rm 'app/Database/Migrations/.gitkeep'
rm 'app/Database/Seeds/.gitkeep'
rm 'app/Filters/.gitkeep'
rm 'app/Helpers/.gitkeep'
rm 'app/Language/.gitkeep'
rm 'app/Language/en/Validation.php'
rm 'app/Libraries/.gitkeep'
rm 'app/Models/.gitkeep'
rm 'app/ThirdParty/.gitkeep'
rm 'app/Views/errors/cli/error_404.php'
rm 'app/Views/errors/cli/error_exception.php'
rm 'app/Views/errors/cli/production.php'
rm 'app/Views/errors/html/debug.css'
rm 'app/Views/errors/html/debug.js'
rm 'app/Views/errors/html/error_404.php'
rm 'app/Views/errors/html/error_exception.php'
rm 'app/Views/errors/html/production.php'
rm 'app/Views/welcome_message.php'
rm 'app/index.html'
rm 'builds'
rm 'composer.json'
rm 'composer.lock'
rm 'env'
rm 'phpunit.xml.dist'
rm 'preload.php'
rm 'public/.htaccess'
rm 'public/favicon.ico'
rm 'public/index.php'
rm 'public/robots.txt'
rm 'spark'
rm 'tests/README.md'
rm 'tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php'
rm 'tests/_support/Database/Seeds/ExampleSeeder.php'
rm 'tests/_support/Libraries/ConfigReader.php'
rm 'tests/_support/Models/ExampleModel.php'
rm 'tests/database/ExampleDatabaseTest.php'
rm 'tests/session/ExampleSessionTest.php'
rm 'tests/unit/HealthTest.php'
rm 'writable/.htaccess'
rm 'writable/cache/index.html'
rm 'writable/debugbar/.gitkeep'
rm 'writable/logs/index.html'
rm 'writable/session/index.html'
rm 'writable/uploads/index.html'
./composer.json has been updated
Running composer update codeigniter4/framework --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
Found 1 security vulnerability advisory affecting 1 package.
Run "composer audit" for a full list of advisories.
./composer.json has been updated
Running composer update codeigniter4/framework --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading codeigniter4/framework (v4.4.4 => v4.4.7)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Upgrading codeigniter4/framework (v4.4.4 => v4.4.7): Extracting archive
Generating optimized autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
No security vulnerability advisories found.
[tatter/scratch e31ec8b] Patch framework (v4.4.4 => v4.4.7)
17 files changed, 119 insertions(+), 81 deletions(-)
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.
Package operations: 0 installs, 1 update, 0 removals
- Downgrading codeigniter4/framework (v4.4.7 => v4.4.4): Extracting archive
Generating optimized autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
************************************
* MERGING *
************************************
[tatter/patches a1fd2b2] Patch framework (v4.4.4 => v4.4.7)
Date: Sun Jul 28 10:15:28 2024 +0900
17 files changed, 119 insertions(+), 81 deletions(-)
************************************
* SUCCESS *
************************************
Patch successful! Updated files are available on branch tatter/patches.
Deleted branch tatter/scratch (was e31ec8b).
yes, it seems it's a git issue. it run smoothly with newer git version
Running latest version tried to upgade my project, but i got error as title said, so i tried to check with fresh install and patch 4.4.4 -> 4.4.7, patching seems to stop in the middle of the process and I got error "fatal: cannot handle restore as a builtin" so I never get tatter/patches branch. I'm using windows and php8.2