diff options
author | Jamie Schouten <j4mie@hey.com> | 2024-09-22 00:42:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 22:42:17 +0000 |
commit | d351a42494e71b5e2da63302c2f9b46c78e6dbde (patch) | |
tree | 4dbdca03dd51f2dc1f26765cc4bdd76c3c8c38d2 /modules | |
parent | a802508f88e546bf18990559e44bf27a09c869ee (diff) | |
download | gitea-d351a42494e71b5e2da63302c2f9b46c78e6dbde.tar.gz gitea-d351a42494e71b5e2da63302c2f9b46c78e6dbde.zip |
Add bin to Composer Metadata (#32099)
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).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/packages/composer/metadata.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go index 2c2e9ebf27..6035eae8ca 100644 --- a/modules/packages/composer/metadata.go +++ b/modules/packages/composer/metadata.go @@ -48,6 +48,7 @@ type Metadata struct { Homepage string `json:"homepage,omitempty"` License Licenses `json:"license,omitempty"` Authors []Author `json:"authors,omitempty"` + Bin []string `json:"bin,omitempty"` Autoload map[string]any `json:"autoload,omitempty"` AutoloadDev map[string]any `json:"autoload-dev,omitempty"` Extra map[string]any `json:"extra,omitempty"` |