composer / composer/satis

Long file names cause problems when archiving with tar

Open
#1,063 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
3.3k
Forks
530
Avg merge
6h 53m
Merged PRs (30d)
13

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.