-
-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add archive.rewrite_paths option [WIP] #1351
Conversation
Allow a user to specify a `source` and `dest` for some (list of) files in the archive and name the archived file at `source`, `dest`.
Codecov Report
@@ Coverage Diff @@
## master #1351 +/- ##
==========================================
- Coverage 83.88% 83.67% -0.22%
==========================================
Files 57 57
Lines 3327 3338 +11
==========================================
+ Hits 2791 2793 +2
- Misses 456 464 +8
- Partials 80 81 +1
Continue to review full report at Codecov.
|
@caarlos0 if this is something you're interested in including, let me know and I'll work on the remaining tasks above! Otherwise, feel free to close this. |
I think a better solution would be to make |
I'm not sure how that would work if files need to be renamed/within subdirectories. Specifically, imagine you want to include a macOS |
I think this should work fine, can you test it? |
yep! I'll rebase + test by the end of the week. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Allow a user to specify a
source
anddest
for some (list of) files in the archiveand name the archived file at
source
,dest
.If applied, this commit will add a new
archive.rewrite_paths
option to the yaml config. This is a list ofsource
,dest
pairs wheresource
s are files that are to be added to the archive, anddest
s are what we want them to be called within the archive.This change pairs with
#1350 as it allows you to do something like include a different file per-OS, but called the same thing
and also fixes #679.
This is one of many ways that this feature could be implemented. If you're interested in including this, I still need to