Skip to content

Commit

Permalink
update the worker to use the new link style
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Nov 5, 2023
1 parent 81aa49a commit 67583de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/zos-update-worker/internal/update_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ func (w *Worker) updateZosVersion(network Network, manager client.Manager) error
return fmt.Errorf("failed to get dst relative path to src: %w", err)
}

zosCurrent := fmt.Sprintf("%v/zos:%v.flist", w.src, currentZosVersion)
zosLatest := fmt.Sprintf("%v/zos:%v-3:latest.flist", w.dst, network)
zosCurrent := fmt.Sprintf("%v/%v", w.src, currentZosVersion)
zosLatest := fmt.Sprintf("%v/%v", w.dst, network)
// the link is like zosCurrent but it has the path relative from the symlink
// point of view (so relative to the symlink, how to reach zosCurrent)
// hence the link is instead used in all calls to symlink
link := fmt.Sprintf("%v/zos:%v.flist", path, currentZosVersion)
link := fmt.Sprintf("%v/%v", path, currentZosVersion)

// check if current exists
if _, err := os.Lstat(zosCurrent); err != nil {
Expand Down

0 comments on commit 67583de

Please sign in to comment.