add support for `strip-components` equivalent for `artifact` stanza
- Dominant language
- Go
- Stars
- 17k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 105
Description
### Proposal
I would like to request for the equivalent functionality of `strip-components` when using the `artifact` stanza and fetching a tar (or tar.gz/tar.xz/tar.bz2) file.
### Use-cases
When setting up a job which downloads a tar.gz which has the version number in the directory being extracted, I have to factor that in into the executable command.
It would be great if the source binary from inside the tar.gz could be directly extracted by providing the equivalent of the `strip-components` functionality.
### Attempted Solutions
This works by wrapping a two step shell script which does the tar cmd itself, but I wanted to request this as part of the artifact stanza block (when source is an archive)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the artifact stanza handling for tar, tar.gz, tar.xz, and tar.bz2 archives, then compare its extraction behavior with the requested strip-components equivalent. Define completion as allowing archive paths to be extracted without their leading directory components, with coverage for the supported archive formats.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100