Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pkg move feature #1059

Closed
nerdvegas opened this issue Apr 8, 2021 · 0 comments · Fixed by #1061
Closed

add pkg move feature #1059

nerdvegas opened this issue Apr 8, 2021 · 0 comments · Fixed by #1061

Comments

@nerdvegas
Copy link
Contributor

Add rez-pkg-mv op.

This is required to support package archival. What would happen is something like this:

  • for some pkg repo path (eg /pkgs), you have some archive pkg repo, let's say /archive
  • to archive a pkg, you 'move' it from /pkgs to /archive
  • in reality this is a copy + an ignore in the src repo
  • we don't want to actually delete the src pkg, there is a chance it may still be in use

The actual process would be:

  • the pkg in /archive is ignored (even though it doesn't exist yet!)
  • the src pkg is copied to /archive
  • now, in quick succession, the src pkg is ignored, and the dest pkg is unignored

This causes the pkg to be moved in as atomic a way as possible.

Archival is just a specific case of moving a package. The idea here is that archived pkgs are still kept in archive repos. If an old runtime needs to be recreated, REZ_PACKAGES_PATH can just be updated to include the archive repos. Note that you would want to keep the original pkg timestamps in this scenario (otherwise archived pkgs would think they did not exist previous to time of archival).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant