Comments (5)
@alamirault How are you installing it to get all those files?
Composer should not include those files if you’re installing a published package.
My stance on the export ignore in the gitattributes is still the same, it’s unfortunate that this mechanism is used for independent things like a conposer install via git and a GitHub zip download. Those files are part of the project and they should be exported by git, they are just irrelevant for composer.
However, my opinion is not set in stone. If you have good new arguments or we have changed circumstances from the discussion in #206, I‘m open to hearing then.
from zipstream-php.
I installed package with composer require maennchen/zipstream-php
Why don't you want to affect "GitHub zip download" ? If it's for case when dev want download source, it use clone instead no ?
Most of popular packages use it (symfony/, thephpleague/, doctrine/*) and this doesn't seem to be a problem
from zipstream-php.
@alamirault The setting will affect every place on GitHub where you can download the source.
I would very much expect to get all of the source including tests and tooling if I click a link labeled „Source code“ on GitHub.
This starts to sound like an issue that should ve brought up directly with composer.
Basically all package managers I work with allow to specify the included files independently from git archive. In theory composer shouldn’t even care if the repository backing it is a git repo or not.
Composer seems to have a setting for it, which we configured but is somehow not applied:
https://getcomposer.org/doc/04-schema.md#archive
Could you open an issue with composer and see what they think about the topic?
from zipstream-php.
I‘ve found this issue: composer/composer#5367
Based on this thread, it seems clear that composer is not interested in a real solution to this.
Quote:
Composer is a dependency manager. Not a packaging tool.
For packagist this does not seem appropriate since it does both.
One solution would be to use a cleaner plugin like https://github.com/liborm85/composer-vendor-cleaner
I‘d be open to a PR for that.
from zipstream-php.
Thanks for digging in composer.
I will not use the composer plugin but it's interesting.
I close this issue, thanks for your time @maennchen
If anyone is interested, feel free to open a PR 😄
from zipstream-php.
Related Issues (20)
- How to add file from direct download URL ?
- How to compress output while writing content? HOT 2
- Warning from fwrite HOT 9
- TODO: Remove `PHP_CS_FIXER_IGNORE_ENV` from `composer.json`
- == Major Release 3 out for testing ==
- addFromStream
- Download is not working (downloads a file called download (without any extension))
- Add file to existing archive HOT 2
- Update Docs for Flysystem 3 HOT 4
- Document default options for Zip64 & Zero Header HOT 19
- CI no space left on device HOT 4
- Deprecate all the removed/changed code changes v2 => v3 HOT 1
- DUMB question...
- S3 steaming results in broken ZIP file HOT 4
- Option to disable UTF-8 encoding for Content-Disposition for KOBO? HOT 6
- Unexpected end of archive - when there are more than 4 folders deep HOT 11
- Cascading subjects coming from ZIP_VERSION_MADE_BY HOT 6
- `OperationMode::SIMULATE_STRICT` and zero-byte files HOT 3
- Creating CRC fails on 32-bit system due to too small integers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zipstream-php.