[
https://issues.apache.org/jira/browse/AVRO-4227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054150#comment-18054150
]
Mattia Basone commented on AVRO-4227:
-------------------------------------
[~mgrigorov] I haven't done anything similar on a monorepo, but maybe we could
try to use the archive->exclude option in composer.json, see
https://getcomposer.org/doc/04-schema.md#archive
> [PHP] - composer package contains everything from the repo
> ----------------------------------------------------------
>
> Key: AVRO-4227
> URL: https://issues.apache.org/jira/browse/AVRO-4227
> Project: Apache Avro
> Issue Type: Bug
> Reporter: Václav Krecl
> Priority: Major
> Attachments: Screenshot 2026-01-24 at 11.26.46.png
>
>
> The composer package contains everything from repository (see screenshot in
> attachments) but should only contain files necessary for its operation.
> Solutions:
> * use export-ignore in .gitattributes
> ** see [https://github.com/composer/composer/blob/main/.gitattributes]
> * create read-only repository for package
> ** see
> [https://github.com/danharrin/monorepo-split-github-action|https://github.com/danharrin/monorepo-split-github-action.]
> ** move composer.json to php/lang
> ** create .gitattributes in php/lang
> ** publish composer package from read-only repository
--
This message was sent by Atlassian Jira
(v8.20.10#820010)