Custom package in private github repository

Hi all,

I have a custom unitypackage hosted on a private github repository. This package is included as a dependency in the game we are working on.

When sharing the game repo with other developers Unity will run into an authentication error saying they obviously don’t have access to this unitypackage’s repo.

What’s the most streamlined way of dealing with this problem? I’ve read about submodules and ways of authentication but can’t tell for sure which one we should use.

Thanks in advance

I guess the easiest way would be to grant each developer access to your private repository. They would have to be logged into github of course.

The second most easiest way would be to share the package in some other way. I prefer not to use git urls for packages but rather pull them locally to a sibling folder of the project, add the package “from disk” and modify the path in manifest.json to be relative. Then have everyone else pull the package to the same folder next to the project. Those who don’t have access to the repository you can just send them a zip file with the package contents and tell them where to place it.

Thanks for the reply!

I ended up with the solution similar to what you mentioned first. I created a new Organization and a Team on GitHub where I could assign private repos to be accessible by other members.

This requires all members’ devices to be authenticated by GitHub CLI or GCM which is another painful step for the not so tech savvy user. Luckily this is a one and done process.