Github package not showing update arrow for new version?

I recently put a package on github (dotsnav, an open source fully dynamic planar navmesh :slight_smile: ). 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:

{
  "name": "com.bassmit.packagetest",
  "displayName": "packagetest",
  "version": "0.1.2",
  "unity": "2020.1",
  "dependencies": {
  },
  "description": "packagetest",
  "author" : {
    "name" : "Bas Smit",
    "email" : "bas@bassmit.info",
    "url" : "http://bassmit.info/"
  }
}

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)

Thanks, but Im specifically referring to custom github packages, seems like you cant do dependencies nor upgrades :frowning:

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.

1 Like