Can not create release if patterns matches multiple files with the same name.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- gitlab, javascript
Research direction
Reproduce the GitLab release upload with two same-basename files under different directories, then trace how upload paths are formed relative to pkgRoot. Done means both assets can be uploaded without GitLab returning the duplicate-link 400 response, with the failure no longer silent.
Written by the indexing model from the issue text.
Description
I'm getting this error,
[12:29:11 PM] [semantic-release] [@semantic-release/gitlab] › ✖ An error occurred while making a request to the GitLab release API:
HTTPError: Response code 400 (Bad Request)
at EventEmitter.<anonymous> (/home/ecarroll/n/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/as-promise.js:118:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[12:29:11 PM] [semantic-release] › ✖ Failed step "publish" of plugin "@semantic-release/gitlab"
[12:29:11 PM] [semantic-release] › ✖ An error occurred while running semantic-release: HTTPError: Response code 400 (Bad Request)
at EventEmitter.<anonymous> (/home/ecarroll/n/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/as-promise.js:118:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
pluginName: '@semantic-release/gitlab'
}
HTTPError: Response code 400 (Bad Request)
at EventEmitter.<anonymous> (/home/ecarroll/n/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/as-promise.js:118:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
pluginName: '@semantic-release/gitlab'
}%
This error comes right after a release PUSH. Currently it's silently failing failing I opened this ticket to fix the silent failing: https://github.com/semantic-release/gitlab/issues/264
{
responseType: 'text',
body: '{"message":"Validation failed: Links have duplicate values (acme-angular-validators.js) for #\\u003cRelease:0x00007f0702a43908\\u003e scope"}'
}
You can see here that the problem is that GitLab errors with 400 (Bad Request) because it's upload multiple files (in different directories) to the release API.
dist/acme/angular-validators/fesm2015/acme-angular-validators.js
dist/acme/angular-validators/esm2015/acme-angular-validators.js
I believe the solution for this should be to add the paths to the file's basename, relatively to the pkgRoot.
- Dominant language
- JavaScript
- Stars
- 344
- Forks
- 89
- Avg merge
- 16h 11m
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from semantic-release/gitlab
-
bug feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
semantic-release/gitlab#891 · 28 comments · 15 reactions ·
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 35/100
semantic-release/gitlab#857 · 1 reaction ·
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 35/100
semantic-release/gitlab#851 ·
-
feature help wanted
Difficulty 4/5 3-5 days Newbie friendliness 45/100
semantic-release/gitlab#830 · 5 comments ·
-
feature
semantic-release/gitlab#822 · 1 comment · 3 reactions · 1 assignee ·
All issues in semantic-release/gitlab
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·