Search Unity

Username for Private Repo

Discussion in 'Package Manager' started by alexisrabadan, Aug 15, 2019.

  1. alexisrabadan

    alexisrabadan

    Joined:
    Aug 26, 2014
    Posts:
    82
    Hi there,

    So when setting up the package manager for private repo access, it works for my private repo using the dependency:

    Code (CSharp):
    1. "com.company.tool": "https://username@bitbucket.org/company/tool.git#develop"
    But this would not work well for the project since the manifest.json file can only have one username. Is it possible to use a different user for each person working in the project?
     
  2. ethan_jl_unity

    ethan_jl_unity

    Unity Technologies

    Joined:
    Sep 27, 2018
    Posts:
    104
    Hi there,

    We use your local git installation for git packages, hence if you set up ssh for all of the machines to have access to this private repository, you could reference this this package without having to include the username in the url.

    Hope this helps.
     
  3. alexisrabadan

    alexisrabadan

    Joined:
    Aug 26, 2014
    Posts:
    82
    I have issues with my GIT credential manager (have had them for years) and needed to set `modalPrompt = true` in my credential manager for it to work. Setting up SSH on my machine is a much better solution though, thanks!