Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity Hub 2.2.1 headless - wrong exit code

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

  1. MartijnGG


    May 3, 2018
    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):
    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
    And then exit with a non-zero exit code.
    This is currently breaking our CI setup as it things the step has failed.