Code Monkey home page Code Monkey logo

Comments (5)

maennchen avatar maennchen commented on June 11, 2024

@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.

alamirault avatar alamirault commented on June 11, 2024

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.

maennchen avatar maennchen commented on June 11, 2024

@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.

maennchen avatar maennchen commented on June 11, 2024

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.

alamirault avatar alamirault commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.