Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 27 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      matthias.reitinger_3646
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi @matthias-reitinger_3646,

        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

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 0
        • M Offline
          matthias.reitinger_3646
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • M Offline
            matthias.reitinger_3646
            last edited by

            I finally had a chance to try out ProGet 2024.39 and can confirm that the package metadata now contains the bin key. Thanks again!

            – Matthias

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation