Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

SemVer compatability in dependencies tag

Discussion in 'Package Manager' started by ggmobi, Apr 26, 2019.

  1. ggmobi

    ggmobi

    Joined:
    Dec 9, 2015
    Posts:
    5
    We receive the following error when we try to use ~ or ^ on version string of a package dependency like below:

    {
    "name": "com.xxx.yyy",
    "displayName": "XXX Analytics",
    "version": "1.0.8",
    "unity": "2018.3",
    "description": "XXX Analytics",
    "keywords": [ "xxx", "yyy"],
    "dependencies": {"com.xxx.aaa" : "^1.0.2"}
    }



    "com.xxx.yyy: Version '^1.0.2" is invalid. Expected a 'SemVer' compatible value."

    Is this a bug or does unity plan to support semantic versioning for dependencies in the future?
     
  2. BorisMongeau

    BorisMongeau

    Unity Technologies

    Joined:
    Feb 24, 2017
    Posts:
    58
    Hi,

    We don't support ^ or ~ to specify compatibility between versions. You can only specify specific versions.
    Currently, there is no plan to add this support.