Search Unity

Github package not showing update arrow for new version?

Discussion in 'Package Manager' started by Bas-Smit, Feb 26, 2021.

  1. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    274
    I recently put a package on github (dotsnav, an open source fully dynamic planar navmesh :) ). I want to push a fix, and I want people who installed the package to get notified of the update. I made a small test package, but simply increasing the version in package.json doesn't seem to work, can anyone point out what I should be doing? Here is my package.json:

    Code (CSharp):
    1. {
    2.   "name": "com.bassmit.packagetest",
    3.   "displayName": "packagetest",
    4.   "version": "0.1.2",
    5.   "unity": "2020.1",
    6.   "dependencies": {
    7.   },
    8.   "description": "packagetest",
    9.   "author" : {
    10.     "name" : "Bas Smit",
    11.     "email" : "bas@bassmit.info",
    12.     "url" : "http://bassmit.info/"
    13.   }
    14. }
     
  2. jasons-novaleaf

    jasons-novaleaf

    Joined:
    Sep 13, 2012
    Posts:
    181
    I mentioned this as a bug with the Unity hidden packages too, when Entities 0.17 was made public it did not show an upgrade arrow. I ended up just removing/adding the package and got the new version. I think you need to do the same. This is a unity bug. (I had the bug on Unity 2020.2f1, have not tested on a newer version)
     
  3. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    274
    Thanks, but Im specifically referring to custom github packages, seems like you cant do dependencies nor upgrades :(
     
    Last edited: Feb 26, 2021
  4. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,066
    Yes, git packages only support adding a specific revision to a project, not updating or git dependencies. See this thread for some of the reasoning behind this.

    I wouldn't hold my breath for this changing anytime soon, your best bet is to run a custom npm server (Verdaccio works well) or use OpenUPM.

    There's also UpmGitExtension, which add some of these features to Unity.
     
    Bas-Smit likes this.