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

Purge fails if unreferenced file to remove is already missing #712

Open
ikari7789 opened this issue Nov 28, 2022 · 1 comment
Open

Purge fails if unreferenced file to remove is already missing #712

ikari7789 opened this issue Nov 28, 2022 · 1 comment

Comments

@ikari7789
Copy link

Not sure if this is the expected behavior or not to just fail instead of continue, but it seems that there is possibly some missing exception catching around unlinking of files?

$ php bin/satis purge ../satis.json /path/to/repository
File '/path/to/repository/include/all$4ab2d531543982a6cac0c06a846341276ba2c450.json' does not exist, defined in "includes" in '/path/to/repository/packages.json'
In PurgeCommand.php line 131:

  unlink(/path/to/repository/dist/org/package/org-package-3fddb6037bea4aee926
  5210f76e8e64068eb076e-zip-a8e20d.zip): No such file or directory

purge [<file> [<output-dir> [<dry-run>]]]
@alcohol
Copy link
Member

alcohol commented Dec 6, 2022

Pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants