Search Unity

Preventing the manifest.json from locking custom git packages

Discussion in 'Package Manager' started by Lowthyst, Feb 5, 2020.

  1. Lowthyst

    Lowthyst

    Joined:
    Mar 17, 2019
    Posts:
    6
    Hello everyone !

    I am currently using custom packages with git and it's working fine, however I would like to know wheter it is possible to let Unity automatically update my packages whenever it detects a new version of them.
    I have tried removing manually the "lock" attributes in the manifest.json but whenever a new version is downloaded, the lock is automatically rewritten.

    Thanks in advance!
     
  2. ethan_jl_unity

    ethan_jl_unity

    Unity Technologies

    Joined:
    Sep 27, 2018
    Posts:
    104
    Hi there,

    It is the desired behaviour for Unity to lock the version when you install a package (to improve stability, prevent new versions breaking your package, etc). Currently there isn't any way to automatically update a package as it gets an update, and I am not sure if we are planning to support auto update for stability reasons.

    What you have been doing would be a good way to manually trigger an update. We might be adding a manual button for that in the future but nothing is planned yet.

    Best,
    Ethan
     
    xucian and Favo-Yang like this.
  3. Lowthyst

    Lowthyst

    Joined:
    Mar 17, 2019
    Posts:
    6
    Thank you Ethan!