Search Unity

Unity Package indirect (transitive) dependencies from GitHub

Discussion in 'Package Manager' started by Reisender, Feb 26, 2020.

  1. Reisender

    Reisender

    Joined:
    Jun 26, 2014
    Posts:
    35
    So, I'm creating a package which includes a set of common stuff I use in all my projects and I'm hosting it on GitHub. Now, I want it to declare a dependency to another package which is also hosted on GitHub (this one specifically: https://github.com/route1rodent/iTween). It works like a charm if I add the dependency to the manifest.json of the project like
    Code (JavaScript):
    1. "dependencies": {
    2.     "com.pixelplacement.itween": "https://github.com/route1rodent/iTween.git",
    3.     // ... more dependencies here
    4.    }
    But if I try to remove this dependency from the manifest.json and instead add it to my package.json soit becomes an indirect dependency from my main package, I get this error in the console and the Package Manager UI:

    com.pixelplacement.itween: Version 'https://github.com/route1rodent/iTween.git' is invalid. Expected a 'SemVer' compatible value.


    Using Unity 2018.4.13f1

    Any help will be much appreciated!
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464