Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
[ProGet] Composer feed: package metadata is missing vendor binaries
-
Hi there,
I'm using ProGet to host a Composer feed and I've run into a problem when using packages that provide vendor binaries like PHPStan.
The package metadata ProGet delivers at
[FEED]/p2/phpstan/phpstan.json
is missing the"bin"
key that defines the vendor binaries.That means that Composer will not create links to these binaries in
vendor/bin
, and calling them using e.g.vendor/bin/phpstan
does not work.I made sure that the
composer.json
in the imported package contains the"bin"
key. It also doesn't matter if I add the package through the browser or via the drop path of the feed.Thank you for your time.
-- Matthias
-
Good catch and thanks for sending over an example! I took a quick look and you are correct that bin was not included in the metadata for that package. I have created a ticket, PG-3000, to track the fix for this. Unfortunately it is too late to get this fixed in today's ProGet release, but it should be fixed in the next maintenance release of ProGet, 2024.39, which is expected in two weeks.
Thanks,
Rich
-
Hi Rich,
I really appreciate you looking into it and confirming the issue so quickly. It's great to know a ticket is already in the works. I'll keep an eye out for the fix in ProGet 2024.39.
Thanks again for your help!
– Matthias