Should plugins be configured inside rezconfig.py? #1382
bpabel
started this conversation in
New Features
Replies: 1 comment 2 replies
-
It's worth remembering when thinking about the direction here, that rez-config also has a way to defer_load fragments of config to other files. (Not sure that if that's what you meant by the merge mechanism, as I don't recall that off the top of my head). I think my preference is that configuration of rez and rez plugins are maintained as closely as possible together, but that idea may get fuzzy if certain plugins end up being distributed to other sub-projects, like if rez-pip got split out, and required some configuration details. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The recent PR that introduces a package repository plugin for S3 brought up a question for me regarding plugin configuration -- #1380
The PR in question requires the user to create a yaml configuration file called
settings.yaml
next to the plugin (which if the PR is accepted, would end up having to be inside the rez installation, along with the default set of plugins).There's a somewhat undocumented feature of the rez config to provide configuration options for plugin types, but not necessarily for specific plugins.
Should the rez config also be used to provide configuration options for specific plugins? And should that be the preferred method instead of having plugins use their own, separately managed configuration files?
My rationale:
Pros:
rezconfig.py
rezconfig.py
settings.rezconfig.py
files, allowing plugins to distribute default configurations for themselves that can be added to theREZ_CONFIG_FILE
path.Cons:
Beta Was this translation helpful? Give feedback.
All reactions