Search Unity

How To Make The Version Selectably for custom Package On Github?

Discussion in 'Package Manager' started by Mr_TZ, Jan 24, 2020.

  1. Mr_TZ

    Mr_TZ

    Joined:
    Apr 5, 2018
    Posts:
    12
    I use my custom package like this:
    "dependencies": {
    "com.a.a":"git@github.com:name/package.git"
    }

    I make tags like 1.1.0 to mark version.
    But i found the only "https:" git url can add tag like #1.1.0 on the end of the url.
    Can i add #1.1.0 on the end of "git@" start url?
    And,what should i do to select version in the package manager?
     
  2. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    756
    Hi @Mr_TZ,

    Have you taken a look at the Unity User Manual section about Git packages URL? Go here if you haven't.

    Regards,

    Pascal
     
    tigerleapgorge likes this.
  3. Mr_TZ

    Mr_TZ

    Joined:
    Apr 5, 2018
    Posts:
    12
    Thank you~
    Found the solution in the document finaly!
    use "ssh://git@abc/efg.git" instead of "git@abc/efg.git "
    And then add #tag on the end of url!