Closed cijagani closed 3 years ago
plateform : windows 10 pro php : 7.4
You are doing right.
It might be a problem of cmd.exe
.
Could you try it with another shell like Git Bash?
Here is the result on macOS bash.
$ git clone https://github.com/kenjis/ci4-app-template.git your-project
Cloning into 'your-project'...
remote: Enumerating objects: 660, done.
remote: Counting objects: 100% (660/660), done.
remote: Compressing objects: 100% (367/367), done.
remote: Total 660 (delta 361), reused 565 (delta 267), pack-reused 0
Receiving objects: 100% (660/660), 221.82 KiB | 249.00 KiB/s, done.
Resolving deltas: 100% (361/361), done.
kenji:~/tmp$ cd your-project/
kenji:~/tmp/your-project (ci4-app-template=)$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 48 installs, 0 updates, 0 removals
- Downloading liaison/revision (v1.1.0)
- Installing bamarni/composer-bin-plugin (1.4.1): Extracting archive
…
Generating autoload files
31 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 88 installs, 0 updates, 0 removals
- Installing composer/package-versions-deprecated (1.11.99.4): Extracting archive
…
- Installing bear/qatools (1.9.12): Extracting archive
19/84 [======>---------------------] 22% Skipped installation of bin bin/php-parse for package nikic/php-parser: name conflicts with an existing file
62/84 [====================>-------] 73% Skipped installation of bin phpunit for package phpunit/phpunit: name conflicts with an existing file
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
60 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../doctrine/coding-standard/lib,../../slevomat/coding-standard
infection/extension-installer: No extensions found
$ php builds development
The following files were modified:
* /Users/kenji/tmp/your-project/composer.json
* /Users/kenji/tmp/your-project/app/Config/Paths.php
* /Users/kenji/tmp/your-project/phpunit.xml.dist
Run `composer update` to sync changes with your vendor folder
$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
- Upgrading codeigniter4/codeigniter4 (dev-develop b911627 => dev-develop 56add79)
- Upgrading phpdocumentor/type-resolver (1.5.0 => 1.5.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
- Downloading codeigniter4/codeigniter4 (dev-develop 56add79)
- Downloading phpdocumentor/type-resolver (1.5.1)
- Upgrading codeigniter4/codeigniter4 (dev-develop b911627 => dev-develop 56add79): Extracting archive
- Upgrading phpdocumentor/type-resolver (1.5.0 => 1.5.1): Extracting archive
Generating autoload files
31 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 3 updates, 0 removals
- Upgrading phpdocumentor/type-resolver (1.5.0 => 1.5.1)
- Upgrading psr/cache (1.0.1 => 3.0.0)
- Upgrading psr/log (1.1.4 => 2.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 3 updates, 0 removals
- Upgrading phpdocumentor/type-resolver (1.5.0 => 1.5.1): Extracting archive
- Upgrading psr/log (1.1.4 => 2.0.0): Extracting archive
- Upgrading psr/cache (1.0.1 => 3.0.0): Extracting archive
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
60 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
Generating autoload files
Generated autoload files
> php spark revision:update
CodeIgniter v4.1.4 Command Line Tool - Server Time: 2021-10-03 18:46:03 UTC-05:00
Liaison Revision
Version: 1.1.0
Run Date: Sun, 03 October 2021, 18:46:03 UTC-05:00
Loaded configuration settings from: Liaison\Revision\Config\Revision.
+---------------------------+--------------------------------------------------------+
| Setting | Value |
+---------------------------+--------------------------------------------------------+
| Root Path | /Users/kenji/tmp/your-project/ |
| Write Path | /Users/kenji/tmp/your-project/writable/ |
| Ignored Directories Count | 0 |
| Ignored Files Count | 0 |
| Allow Gitignore Entry | Allowed |
| Fall Through to Project | Allowed |
| Maximum Retries | 10 |
| Consolidator | Liaison\Revision\Consolidation\DefaultConsolidator |
| Upgrader | Liaison\Revision\Upgrade\ComposerUpgrader |
| Pathfinder | Liaison\Revision\Paths\DefaultPathfinder |
| Diff Output Builder | SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder |
| Log Handlers Count | 2 |
+---------------------------+--------------------------------------------------------+
Starting software updates...
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
infection/extension-installer: No extensions found
31 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Found 7 files to consolidate.
[p] Proceed.
[l] List all files to consolidate.
[c] List created files only (1).
[m] List modified files only (6).
[d] List deleted files only (0).
[a] Abort.
What shall I do? [p, l, c, m, d, a]: p
Found 6 files in conflict.
[l] List all files in conflict.
[o] Overwrite all.
[b] Create backup files then safely overwrite all.
[s] Skip all.
[r] Resolve each conflict.
[a] Abort.
What shall I do? [l, o, b, s, r, a]: o
Logs for this run can be found here:
/Users/kenji/tmp/your-project/writable/revision/logs/
Terminating: Application update was successful.
Software updates finished in 17.046 seconds.
$ git status
On branch ci4-app-template
Your branch is up to date with 'origin/ci4-app-template'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: app/Config/Filters.php
modified: app/Config/Modules.php
modified: app/Config/Paths.php
modified: app/Config/Services.php
modified: app/Controllers/BaseController.php
modified: app/Controllers/Home.php
modified: composer.json
modified: composer.lock
modified: vendor-bin/tools/composer.lock
no changes added to commit (use "git add" and/or "git commit -a")
thanks for the reply.
i am getting same probelm on gitbash git cmd and powershell
is there any windows os compatibility related issue.?
@truelineinfotech
is there any windows os compatibility related issue.?
It seems yes.
What's your PHP version?
I found this: https://github.com/php/php-src/pull/4961
fgets(STDIN)
fails on Windows on PHP 7.4.0.
@truelineinfotech This is caused by Liaison Revision, which uses CI4 CLI class.
If the CLI::prompt does not work on your Windows PHP without the bug above, I recommend you report a bug to CodeIgniter4.
I am using php 7.4.9 with wampp.
I will try on my other computer. It has Ubuntu os.
Thank you. Closing this issue.
i am facing one issue after installing application.
setps to genereate error 1) clone this project 2) run
composer install
command 3) runphp builds development
command 3) runcomposer update
command now it will detect new / modified files of codeigniter 4 https://prnt.sc/1unfgrdi was pressing o (key) to overwrite all. but command is not accepting any key as input.
did i missed something?
thanks