appleboy / appleboy/drone-sftp-cache
Issue with branch names when using git tag
- Dominant language
- Go
- Stars
- 15
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
The issue is that this plugin creates a hash file name based on branch name and mount path and every time you git tag you will have new cache file. DRONE_BRANCH and DRONE_TAG are the same at least for bitbucket.org. I saw the commented code that handles fallback when there is no cache file it takes from master by default and that is as a DRONE_REPO_BRANCH.
So my question is can we handle this situation by using DRONE_REPO_BRANCH value as fallback?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the code that builds cache file names from the branch name and mount path, then inspect the commented fallback used when no cache file exists. Reproduce the behavior with a tagged build and compare DRONE_BRANCH, DRONE_TAG, and DRONE_REPO_BRANCH. Done means tagged builds consistently use the repository branch fallback without creating a new cache file per tag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100