swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.47k stars 8.96k forks source link

Latest Release Unable to Update #9864

Closed aldobarr closed 5 months ago

aldobarr commented 5 months ago

Q&A (please complete the following information)

Describe the bug you're encountering

composer update today is causing the docker container to no longer start due to failures with the update. See log:

2024-04-22 13:49:59 Loading composer repositories with package information
                                                                          2024-04-22T17:50:03.311437541Z Updating dependencies
                                                                                                                              2024-04-22T17:50:03.475720250Z Nothing to modify in lock file
                                                                                                                                                                                           2024-04-22T17:50:03.496461727Z Installing dependencies from lock file (including require-dev)
                                       2024-04-22T17:50:03.501824406Z Package operations: 0 installs, 1 update, 0 removals
                                                                                                                          2024-04-22T17:50:03.504465194Z   - Downloading swagger-api/swagger-ui (v5.17.0)
                                                                                                                                                                                                         2024-04-22T17:50:04.197165225Z   - Upgrading swagger-api/swagger-ui (v5.16.2 => v5.17.0): Extracting archive
                                                                    2024-04-22T17:50:04.470499779Z     Update of swagger-api/swagger-ui failed
                                                                                                                                              2024-04-22T17:50:04.752812275Z 
                                                                                                                                                                             2024-04-22T17:50:04.762169959Z In Filesystem.php line 284:
                                                                                                                                                                                                                                       2024-04-22T17:50:04.762181769Z                                                                           
                                                                                               2024-04-22T17:50:04.762184760Z   Could not delete /var/www/app/vendor/swagger-api/swagger-ui/.agignore:  
                                                                                                                                                                                                        2024-04-22T17:50:04.762186370Z                                                                           
                                                                2024-04-22T17:50:04.762187770Z 
                                                                                               2024-04-22T17:50:04.762473112Z update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]
                                                                                                                                                                                                                                                2024-04-22T17:50:04.762483552Z

To reproduce...

Update via composer to today's release

Expected behavior

Update should not break.

char0n commented 5 months ago

Hi @aldobarr,

From the logs it's not quite apparent what is wrong with the installation. We haven't done any changes to the build system at all.

char0n commented 5 months ago

I've check the build and release logs, I've detected no anomaly.

aldobarr commented 5 months ago

I couldn't tell you what the issue is. The actual usage for us is with the l5-swagger package for laravel. Our container is configured to update packages with dependencies on startup via: composer update -W

This started happening today which coincides with the 5.17.0 release

char0n commented 5 months ago

Could you setup a small repo for me to reproduce the issue there?

aldobarr commented 5 months ago

Nevermind, this is my fault I see the issue now is permission related. Not sure how permissions changed but got this resolved. Sorry for the false alarm.

char0n commented 5 months ago

For reference here is a composer release log: https://jenkins.swagger.io/view/OSS%20-%20JavaScript%20Releases/job/oss-swagger-api-packagist-trigger/212/console