Search Unity

Caching Unity packages

Discussion in 'Package Manager' started by MrMatthias, Aug 13, 2020.

  1. MrMatthias

    MrMatthias

    Joined:
    Sep 18, 2012
    Posts:
    191
    The documentation says that it's possible to cache the unity packages via a custom package registry.
    How would i do that?

    I set up a verdaccio npm registry with an uplink to https://packages.unity.com
    Code (CSharp):
    1. uplinks:
    2.   upm:
    3.     url: https://packages.unity.com
    4.     cache: true
    the package manifest looks like this
    This is the log:
     
  2. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,066
    Did you add a
    packages
    entries that specifies the uplink with
    proxy
    ? I don't think just adding the uplink on its own does anything, it needs to be used in a packages directive.

    See here: https://verdaccio.org/docs/en/packages

    e.g.
    Code (CSharp):
    1. packages:
    2.   '**':
    3.     access: $all
    4.     proxy: upm
     
    MrMatthias likes this.
  3. MrMatthias

    MrMatthias

    Joined:
    Sep 18, 2012
    Posts:
    191
    Yes, thank you, it was still referring to the npmjs uplink.
    Would it be possible to redirect https://packages.unity.com from all workstations to the local server behind nginx?
    In previous unity manual versions it was said that:
    Is it now possible to add a CA?
     
  4. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,066