composer / composer/satis

Using an 'artifact' repo results in bad links and bad dist files

Open
#148 11 comments 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

Using an artifact repository results in bad links, and misnamed files in the dist directory.

``` json
{
"name": "My Repository",
"homepage": "http://localhost/artifacts",
"repositories": [
{ "type": "artifact", "url": "./packages" }
],
"archive": {
"directory": "dist",
"format": "tar"
},
"require-all": true
}
```

creates links like: `http://localhost/artifacts/dist/local-mypackage-1.0.5.7-local-mypackage-1.0.5.7.zip.tar` as well as the corresponding `.zip.tar` files in `dist`

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the JSON configuration shown, using an artifact repository and the tar archive settings. Trace the archive and link generation from that configuration; done means the generated dist filenames and repository URLs no longer contain the duplicated package name or the unexpected .zip.tar suffix.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.