-
Notifications
You must be signed in to change notification settings - Fork 326
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
override git plugin config in package.py #871
Comments
Hey, I can't repro this unfortunately, it's working for me (using the first form listed). What os/rez-version? What was the specific error message you got? |
Hi Allan,
We have REZ_CONFIG_FILE point to our studio config, and there is a plugins dictionary with just the emailer plugin configured, I tried this too, but got the same error.
# -*- coding: utf-8 -*-
name = '...'
version = '1.6.12'
authors = []
requires = []
variants = [['houdini-18.0', 'python-2']]
private_build_requires = ['fxBuildTools-4']
with scope("config") as c:
c.release_packages_path = "/shots/fx/home/software/packages"
c.plugins.release_hook.emailer.recipients = []
c.plugins.release_vcs.git.allow_no_upstream = True
def commands():
env.HOUDINI_PATH.prepend("{root}/houdini")
env.PATH.prepend("{root}/bin")
env.PYTHONPATH.prepend("{root}/python")
uuid = '173c976d-43f4-460f-924b-0abbb41a04e1' |
Also this: with scope("config") as c:
print(c.plugins)
|
So I think you're hitting an error earlier than the code that's checking
the allow_upstream config setting.
See:
https://github.com/nerdvegas/rez/blob/master/src/rezplugins/release_vcs/git.py#L78
This is getting called before L98, and causes the error you've given here
if a tag is checked out. I'm a bit puzzled as to how this hasn't come up
before though.
The fix seems straightforward - just add a check for 'does not point to a
branch' substring on L85. Are you able to build a local rez instance and
try this out?
This ticket also makes me think we should add a PKG option to the
rez-config tool so you can see a config dump wrt a given developer package.
Thx
A
…On Fri, Apr 3, 2020 at 3:33 AM alexxbb ***@***.***> wrote:
Also this:
with scope("config") as c:
print(c.plugins)
{'release_hook': {'emailer': {'recipients': ***@***.***']}}}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#871 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSSLLFXYBFF4LMXCF33RKS44FANCNFSM4LZY5H2A>
.
|
What is the proper way of overriding allow_no_upstream config property in package.py?
I found this code
And tried various ways with no success:
The text was updated successfully, but these errors were encountered: