LOW: GetBuildDir parameter named appID but always called with app.Name #123
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
merge-ready
merge-ready
needs-checks
needs-checks
needs-rebase
needs-rebase
needs-review
needs-review
needs-rework
needs-rework
notplanned
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#123
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
deploy.Service.GetBuildDir(appID string)is documented as taking an app ID, but all call sites passapp.Name:cloneRepository()usesfilepath.Join(svc.config.DataDir, "builds", app.Name)inlinecleanupCancelledDeploy()callssvc.GetBuildDir(app.Name)The builds directory structure uses app names, not ULIDs. If anyone calls
GetBuildDirwith an actual app ID, the path will not match.Files
internal/service/deploy/deploy.go:88- GetBuildDir definitioninternal/service/deploy/deploy.go- cloneRepository and cleanupCancelledDeployFix
Rename parameter to
appNameand update doc comment, or makecloneRepositoryuseGetBuildDirinstead of constructing the path inline.