rez icon indicating copy to clipboard operation
rez copied to clipboard

Expose "skip_payload" to rez-cp cli tool

Open wbpa-garrett opened this issue 1 year ago • 5 comments

Hello! I'm working around an issue I have where the hardlink lockfile created during package_copy() is failing due to our cross-platform samba mounts not allowing hardlinks. I was thinking it would be nice to find a way to force makedir lockfiles, but then realized I could also use rez-cp as-is if I had a --skip_payload option that would simply install the variant into the package.py and allow me to use rsync/cp/shutil to copy the payload myself.

Is this something the team is interested in supporting?

Motivation It seems like a small thing to add, and allows for a cli way to interact with the repositories that mimics the python API.

wbpa-garrett avatar Mar 27 '24 17:03 wbpa-garrett

Hi @garrett-wbpa, can you give us a little bit more information on what problems you are trying to work around please?

Also, did you take a look at the file_lock_type setting?

plugins = {
    "package_repository": {
        "filesystem": {
            "file_lock_type": "mkdir",
        },
    },
}```

From what I understand from the description, that would do what you need, but more details would help us to give you a better answer.

Thanks.

Sure, I detailed my original issue in a bug report. https://github.com/AcademySoftwareFoundation/rez/issues/1700

wbpa-garrett avatar Mar 27 '24 18:03 wbpa-garrett

I'll take a look at the rez-config setup now, thank you!

wbpa-garrett avatar Mar 27 '24 18:03 wbpa-garrett

@garrett-wbpa is this issue still needed?

Not needed for me, no. Maybe helpful if someone else has a reason to install a variant without the payload and wants to use cli?

wbpa-garrett avatar Mar 27 '24 19:03 wbpa-garrett