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

UPM automatically adding packages

Discussion in 'Package Manager' started by Martin_Gonzalez, Jan 27, 2021.

  1. Martin_Gonzalez


    Mar 25, 2012

    I have a CI environment and I need Unity UPM NOT to add packages automatically. To be specific, is adding automatically, without me wanting, package. This is giving me duplicated classes error.

    This happens even if I remove it from package manager window, somehow if its a clean installation of the project it adds it.

    How can tell unity to not do that?

    * I don't have in manifest.json
    * I have packgae-lock.json in my version control without

    The following packages were added:
    The following packages were updated:
    com.unity.test-framework from version 1.1.18 to 1.1.19
    com.unity.xr.legacyinputhelpers from version 2.1.4 to 2.1.6

    Documentation says

    Package Manager only installs packages that are explicitly included as a dependency in your project, so once you remove that entry, Package Manager ignores the package and doesn’t install it.
    Last edited: Jan 28, 2021
  2. samuelb_unity


    Unity Technologies

    Nov 13, 2017
    Hi @Martin_Gonzalez,

    These are known as default packages. There is an undocumented flag you can start the editor with
    that disables this feature. Hope this helps!
    JoNax97 likes this.