Skip to content

Commit

Permalink
fix(sync): create vendor directory if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed Dec 24, 2023
1 parent 2e3b261 commit fff32e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/myks/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ func (a *Application) doSync(vendirSecrets string) error {
vendirLockFileRelativePath := filepath.Join("..", a.e.g.ServiceDirName, a.e.g.VendirLockFileName)
vendorDir := a.expandPath(a.e.g.VendorDirName)

if err := createDirectory(vendorDir); err != nil {
return err
}

// TODO sync retry
if err := a.runVendirSync(vendorDir, vendirConfigFileRelativePath, vendirLockFileRelativePath, vendirSecrets); err != nil {
log.Error().Err(err).Msg(a.Msg(syncStepName, "Vendir sync failed"))
Expand Down

0 comments on commit fff32e4

Please sign in to comment.