box-project / box

📦🚀 Fast, zero config application bundler with PHARs.
https://box-project.github.io/box
MIT License
1.14k stars 100 forks source link

Box info cannot process file without metadata #1419

Open Marian-Kechlibar opened 1 month ago

Marian-Kechlibar commented 1 month ago

When I produce a new PHAR file using Box 4.6.2, it no longer contains any Metadata, as those are deprecated since Box 4.6.

But the info --list command cannot cope with that. It immediately puts out a red error concerning the very first file in the PHAR, saying that no metadata was found for that file. I am attaching a screenshot from the command line box-metadata-list

Question Answer
Box version 4.6.2@29c3585
PHP version 8.2.12
Platform with version Windows
theofidry commented 1 month ago

Hm that doesn't look good but I'm a bit surprised by this error... Could you provide a reproducer?

Marian-Kechlibar commented 1 month ago

So this is a very basic project which demonstrates the problem.

Run

box compile --config box-web-project.json

to create the file web-project/web-project.phar

Run

box --list info web-project/web-project.phar

to trigger the error.

web-project.zip