drone-cache icon indicating copy to clipboard operation
drone-cache copied to clipboard

archive: Add absolute path mode

Open hacktron95 opened this issue 3 years ago • 12 comments

ALL CREDITS goes to @imranismail Fixes #130 #106 comment

Description

  • add absolute path mode to tar.gz file by checking for any path prefixed with /

  • add test in tar_test.gz for the absolute path mode.

  • since gzip.go uses tar.gz underneath it, there was no changed made to gzip.go

  • added test in gzip_test.go for the absolute path mode.

  • [x] Read the CONTRIBUTING document.

  • [x] Read the CODE OF CONDUCT document.

  • [x] Add tests to cover changes.

  • [x] Ensure your code follows the code style of this project.

  • [X] Ensure CI and all other PR checks are green OR

    • [x] Code compiles correctly.
    • [x] Created tests which fail without the change (if possible).
    • [x] All new and existing tests passed.
  • [x] Add your changes to Unreleased section of CHANGELOG.

  • [x] Improve and update the README (if necessary).

  • [x] Ensure documentation is up-to-date. The same file will be updated in plugin index when your PR is accepted, so it will be available for end-users at http://plugins.drone.io.

hacktron95 avatar Oct 13 '20 03:10 hacktron95

@hacktron95 Thanks for the contribution. We'll have a look at it as soon as we can.

kakkoyun avatar Oct 13 '20 16:10 kakkoyun

Hey @hacktron95, sorry I think I dropped the ball on this one. I'll try to spare some time for reviewing this.

kakkoyun avatar Feb 02 '21 06:02 kakkoyun

hey @kakkoyun thanks a lot for your review, I'll resolve all the suggested changes during the weekend :+1:

hacktron95 avatar Feb 04 '21 05:02 hacktron95

hey @kakkoyun, hope you are doing well!, may I ask what's the progress on this PR please? thanks

hacktron95 avatar Mar 29 '21 09:03 hacktron95

@hacktron95 Hey, I have missed this. I'll take a look at it. Thanks for your patience!

kakkoyun avatar Mar 29 '21 11:03 kakkoyun

hello @kakkoyun. Just want to know if this PR will be still considered to be merged. Facing same issue.

Thanks!

silvez-dh avatar Jul 28 '21 15:07 silvez-dh

It's still considered. Reviews are welcome. It's been a while since the last time I have touched the project. I'll do my best to merge it, no promises. As I told additional reviews and tests would be helpful.

kakkoyun avatar Jul 29 '21 07:07 kakkoyun

bump this PR

umarizulkifli avatar Dec 23 '21 04:12 umarizulkifli

I think that use-cases where the paths to cache are outside of the workspace directory are quite common, e.g. when wanting to save the cache of some package managers. I am personally affected by this when trying to save the directory of the Composer cache. Is there any plan to bring this PR home anytime soon?

ste93cry avatar Feb 26 '22 20:02 ste93cry

Echoing @ste93cry - this is preventing me from proper caching for a large number of repositories utilizing composer and npm (Node). Any chance of seeing this merged any time soon? For what it's worth, I pulled the author's repo and built it locally for testing with drone exec and it worked great for composer dependencies.

mattzuba avatar Apr 23 '22 18:04 mattzuba

I guess we need help from @meltwater-foundation to proceed with this

kakkoyun avatar Apr 25 '22 10:04 kakkoyun

@hacktron95 Do you mind pulling the latest master into your working branch and resolving conflicts? After this and passing tests I'm happy to review and merge.

bdebyl avatar Jul 19 '22 14:07 bdebyl

pinging @hacktron95 - can you review @bdebyl's comment from Jul 19?

mattzuba avatar Sep 08 '22 05:09 mattzuba

@hacktron95 @mattzuba I can resolve the merge conflicts if either of you are unavailable to. That's all that's left to get this merged and ready for the v1.4.0 release

bdebyl avatar Sep 13 '22 14:09 bdebyl

I have forked this and the other repos, rebased the commits and done some testing and I'm happy to submit a new PR if you'd like.

mattzuba avatar Sep 13 '22 14:09 mattzuba

Hey @mattzuba @bdebyl, Sorry for my late reply I totally overlooked this thread, I've merged upstream master because my repository was forked from another fork :D so I hope I did it right.

hacktron95 avatar Sep 15 '22 13:09 hacktron95