Skip to content

Rez 3.4.0 regression with private_build_requires() #2153

Description

@czerouni

Describe the bug here.

Environment

  • rocky 9.5 linux
  • Rez 3.4.0
  • Rez python 3.11

To Reproduce
Add these lines in a package.py file

@late()
def private_build_requires():
    pass

then rez build -ci

Expected behavior
This is a regression. In Rez 3.3.0, this has no effect. In Rez 3.4.0, this generates a traceback.

The setting is wrong - the function should return a list, not None. But it does not fail in 3.3.0, but does in 3.4.0.

I am not sure which version is the bug, but I think the correct behavior would be a warning that the value was not set properly, and then ignore it and continue.

Also, this only seems to happen with a late-binding function. If I just have this:

private_build_requires = None

It "works" (does not crash) in Rez 3.4.0

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions