Search Unity

New Github package registry sounds really interesting

Discussion in 'Package Manager' started by arielsan, May 11, 2019.

  1. arielsan

    arielsan

    Joined:
    Dec 3, 2013
    Posts:
    27
    5argon, mobuni5, De-Panther and 2 others like this.
  2. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    339
    I see two issues that prevent the Github Package Registry being used with Unity:

    1. The registry requires authentication, which Unity does not yet support. I wasn't able to install a package as an anonymous user and the docs do instruct you to authenticate before installing a package. I'm not sure if Github plans to allow anonymous installs for public packages at a later time. Unity has stated they're planning to support authentication but that it's not a high priority at this point.

    2. The registry uses @-scopes for packages. Unity has decided to instead use reverse domain names and prefixes thereof for their scoped registry implementation and don't allow @ as part of package names (last time I checked, at least). This means that packages from the Github Package Registry can't be used with Unity, unless Unity explicitly adds support for @-scoped package names.
     
    monry likes this.
  3. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    540
    @Adrian is right, I've looked at the documentation and tested their sample package in a Unity project. It doesn't work with Unity Package Manager. Sadly, Github packages registry is tightly coupled with npm's scope registry feature and this is not something we support. We will investigate further and see what we can do.

    Regards,

    Pascal
     
    monry likes this.
  4. monry

    monry

    Joined:
    May 23, 2019
    Posts:
    2
    I'm interested in this topic too.
    I was thinking of build a registry using Verdaccio on my own, but I'll use GitHub Package Registry if Unity supports it.
     
  5. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    540
    @monry I've requested beta access to test the feature in more depth with Unity.
     
    dzamani, fuqunaga and monry like this.
  6. pablothedolphin

    pablothedolphin

    Joined:
    Oct 20, 2016
    Posts:
    85
    is there any news on how/when/if unity plans to support github package registries?
     
  7. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    241
    I want to know the progress too. Will it support or it won't