satis icon indicating copy to clipboard operation
satis copied to clipboard

Long file names cause problems when archiving with tar

Open dehenne opened this issue 3 months ago • 0 comments

Hey,

I have somt problems with long file names in some repos, they cause problems when archiving with tar

To Reproduce

require:

  • horstoeko/zugferd
  • or google/apiclient-services

Outcome

Dumping package 'horstoeko/zugferd' in version 'v1.0.86'.
  - Installing horstoeko/zugferd (v1.0.86): Extracting archive
Skipping Exception 'tar-based phar "/tmp/composer_archive691d81ad51f9e.tar" cannot be created, filename "src/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd" is too long for tar file format'.
Dumping package 'google/apiclient-services' in version 'v0.375.0'.
  - Installing google/apiclient-services (v0.375.0): Extracting archive
Skipping Exception 'tar-based phar "/tmp/composer_archive691d81a92033e.tar" cannot be created, filename "src/Aiplatform/GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig.php" is too long for tar file format'.

Additional context

You can set it to skip errors, which works as a workaround. However, this is not a permanent solution. Can you allow long file names when archiving?

https://commons.apache.org/proper/commons-compress/tar.html#Long_File_Names

Unfortunately, I don't know if Composer can handle that. When unpacking, I think long file names must also be used.

best regards hen

dehenne avatar Nov 19 '25 08:11 dehenne