Search Unity

Unity Hub 2.2.1 headless - wrong exit code

Discussion in 'Unity Hub' started by MartijnGG, Dec 5, 2019.

  1. MartijnGG

    MartijnGG

    Joined:
    May 3, 2018
    Posts:
    74
    Since the upgrade to Unity Hub 2.2.1 I've noticed that running headless commands doesn't always exit with 0 on a successful execution.

    For example:
    '"Unity Hub.exe" -- --headless install-path --set c:/Unity'
    will print.
    Code (csharp):
    1.  
    2. (node:5732) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    3. All Unity Editors will be installed to c:/Unity
    4.  
    And then exit with a non-zero exit code.
    This is currently breaking our CI setup as it things the step has failed.