Search Unity

What State is tracked in Package Cache?

Discussion in 'Package Manager' started by mvoss_unity, Feb 14, 2020 at 11:16 AM.

  1. mvoss_unity

    mvoss_unity

    Joined:
    Feb 5, 2019
    Posts:
    32
    About a package, in particular one from git, what state is tracked in the package cache?

    It seems to be just a checkout.

    (the idea is to add a layer of caching on top of this, but it means that on similar build machines but different installs, the package cache needs to be compatible)

    The commit id seems to be stored in the cache directory name, sadly.
     
  2. samuelb_unity

    samuelb_unity

    Unity Technologies

    Joined:
    Nov 13, 2017
    Posts:
    87
    Hi @mvoss_unity ,

    It's not quite just a checkout, the package contents in the cache will be equivalent to the published package contents i.e. things like .npmignore are taken into account and the cache entry is not itself a git repo. What exactly did you have in mind for your caching layer?

    Btw, you can find more information about what's checked out by looking at your project manifest, you should see an entry like this:
    Code (JavaScript):
    1. "lock": {
    2.     "com.my.package": {
    3.       "revision": "my-branch",
    4.       "hash": "123"
    5.     }
    6.   }
     
unityunity