Skip to content

hibzzgames/Hibzz.DependencyResolver

Repository files navigation

Hibzz.DependencyResolver

LICENSE Twitter Follow Discord Unity C#

A tool used to resolve git dependencies in packages installed with Unity's Package Manager

Screenshot 2023-07-02 112849


Installation

Via Github This package can be installed in the Unity Package Manager using the following git URL.

https://github.com/hibzzgames/Hibzz.DependencyResolver.git

Alternatively, you can download the latest release from the releases page and manually import the package into your project.


Usage

The main issue this tool attempts to solve is the inability to define git repositories as dependencies in packages installed with Unity's Package Manager. This is one of the most requested features for the package manager from the community, but it is not currently supported. Check out this forum post (from 2019!!!) for more information.


For Users:

Make sure to install this package before installing any other packages that have git dependencies. If there are any git dependencies in packages that are already installed, simply press update on the package and the dependencies will be resolved. Any new package that has a git dependency will be automatically resolved.

The tool is smart enough to only install new git dependencies if they are not already installed. When a dependency needs to be installed, the tool will prompt the user to confirm the installation of the dependency. This is to prevent the user from accidentally installing a malicious package.


For Package Developers:

To add a git dependency to a package, you can add a new entry to the git-dependencies field in the package.json file of the package. The format of the entry is as follows:

"git-dependencies": [
    "https://github.com/hibzzgames/Hibzz.Singletons.git",
    "https://github.com/hibzzgames/Hibzz.Hibernator.git"
  ]

Hopefully, Unity will add native support for this feature in the future and make this tool redundant, but until then, this tool can be used to resolve Git dependencies.


Have a question or want to contribute?

If you have any questions or want to contribute, feel free to join the Discord server or Twitter. I'm always looking for feedback and ways to improve this tool. Thanks!

Additionally, you can support the development of these open-source projects via GitHub Sponsors and gain early access to the projects.

About

A tool used to resolve git dependencies in packages installed with Unity's Package Manager

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages