Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing abandoned kint-php/kint library with its successor #264

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

escopecz
Copy link
Member

@escopecz escopecz commented Jan 4, 2022

The GH Actions are failing with

Downloading raveren/kint (v0.9.1)
    Failed to download raveren/kint from dist: The "https://codeload.github.com/raveren/kint/legacy.zip/d4780fc6e974f00c427c1fd2492dca4dcd636704" file could not be downloaded (HTTP/2 404 )

Error: Failed to execute git checkout 'd4780fc6e974f00c427c1fd2492dca4dcd636704' -- && git reset --hard 'd4780fc6e974f00c427c1fd2492dca4dcd636704' --

fatal: reference is not a tree: d4780fc6e974f00c427c1fd2492dca4dcd636704

As https://packagist.org/packages/raveren/kint is abandoned and https://packagist.org/packages/kint-php/kint is suggested as a replacement I did just that:

$ composer remove raveren/kint --dev
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
$ composer require --dev kint-php/kint
Using version ^4.1 for kint-php/kint
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing kint-php/kint (4.1.1): Downloading (100%)         
kint-php/kint suggests installing kint-php/kint-twig (Provides d() and s() functions in twig templates)
Writing lock file
Generating autoload files

The lock was out of sync after the commands above 🤷 so I did this:

$ composer validate --strict
./composer.json is valid
The lock file is not up to date with the latest changes in composer.json, it is recommended that you run `composer update` or `composer update <package name>`.

$ composer update kint-php/kint
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
48 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
~/dev/api-library (replacing-abandoned-kint-library) $ composer validate --strict   
./composer.json is valid

And the error was gone.

@cla-bot cla-bot bot added the cla-signed label Jan 4, 2022
Copy link
Member

@dennisameling dennisameling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Ready to merge when CI is green 🚀

@codecov-commenter
Copy link

Codecov Report

Merging #264 (aab8705) into main (20bd039) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #264   +/-   ##
=========================================
  Coverage     51.45%   51.45%           
  Complexity      406      406           
=========================================
  Files            30       30           
  Lines          1028     1028           
=========================================
  Hits            529      529           
  Misses          499      499           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20bd039...aab8705. Read the comment docs.

@escopecz escopecz merged commit 7478f55 into main Jan 4, 2022
@escopecz escopecz deleted the replacing-abandoned-kint-library branch January 4, 2022 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants