]> source.dussan.org Git - gitea.git/commit
Add bin to Composer Metadata (#32099) (#32106)
authorGiteabot <teabot@gitea.io>
Sun, 22 Sep 2024 18:42:02 +0000 (02:42 +0800)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 18:42:02 +0000 (18:42 +0000)
commit73066e3f97d4bf287bd8d506bab7f13ba4155c2c
tree6714c7a135385255257902b53c60adb64a9f9f14
parent919b82461aa3bf9581f6e9e95ddc1ed16c17290b
Add bin to Composer Metadata (#32099) (#32106)

Backport #32099 by @maantje

This PR addresses the missing `bin` field in Composer metadata, which
currently causes vendor-provided binaries to not be symlinked to
`vendor/bin` during installation.

In the current implementation, running `composer install` does not
publish the binaries, leading to issues where expected binaries are not
available.

By properly declaring the `bin` field, this PR ensures that binaries are
correctly symlinked upon installation, as described in the [Composer
documentation](https://getcomposer.org/doc/articles/vendor-binaries.md).

Co-authored-by: Jamie Schouten <j4mie@hey.com>
modules/packages/composer/metadata.go
tests/integration/api_packages_composer_test.go