UnifiedArchive icon indicating copy to clipboard operation
UnifiedArchive copied to clipboard

Exclude dev files from dist package

Open cedric-anne opened this issue 2 years ago • 6 comments

For the time being, when fetching the dist package from composer, all repository files are included. Using export-ignore git attribute would permit to make the dist package ligther (see https://php.watch/articles/composer-gitattributes#export-ignore).

cedric-anne avatar Jul 27 '22 14:07 cedric-anne

ping @wapmorgan

cedric-anne avatar Sep 16 '22 10:09 cedric-anne

What does it do? What's purpose of this?

wapmorgan avatar Sep 16 '22 13:09 wapmorgan

For the time being, when fetching the dist package from composer, all repository files are included. Using export-ignore git attribute would permit to make the dist package ligther (see https://php.watch/articles/composer-gitattributes#export-ignore).

See PR description.

cedric-anne avatar Sep 16 '22 13:09 cedric-anne

PHPUnit package, for examples, has a .gitattributes file with several export-ignore rules to fine to the downloadable package

Where is export-ignore ?

wapmorgan avatar Sep 16 '22 15:09 wapmorgan

Where is export-ignore ?

My bad, these were missing. I fixed it.

cedric-anne avatar Sep 19 '22 06:09 cedric-anne

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Sep 19 '22 06:09 sonarqubecloud[bot]