AcademySoftwareFoundation / rez

An integrated package configuration, build and deployment system for software
https://rez.readthedocs.io
Apache License 2.0
942 stars 335 forks source link

Expose "skip_payload" to rez-cp cli tool #1699

Open garrett-wbpa opened 6 months ago

garrett-wbpa commented 6 months ago

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.

JeanChristopheMorinPerso commented 6 months ago

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.
garrett-wbpa commented 6 months ago

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

garrett-wbpa commented 6 months ago

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

JeanChristopheMorinPerso commented 6 months ago

@garrett-wbpa is this issue still needed?

garrett-wbpa commented 6 months ago

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?