Skip to content

UPM Git URL command #7

@chrisyarbrough

Description

@chrisyarbrough

In Unity Package Manager it's possible to install packages via git URLs:
https://docs.unity3d.com/6000.5/Documentation/Manual/upm-ui-giturl.html

I regularly use this workflow to test custom package changes in game projects.

Problem: the link is relatively cumbersome to type manually.

Solution: ucll could create the link from a given project.

  • If there is only a single embedded package, it will be used.
  • Otherwise, path to the package must be passed (or rather search directory)

URL example:

ssh://git@mydomain.com/core/core-frontend-platform-unity.git?path=core-frontend-platform-unity/Packages/com.innogames.core.frontend.aar-builder#master
echo "$(git config --get remote.origin.url)?path=$(dirname $(git ls-files '*/package.json' | head -n 1))#$(git rev-parse --abbrev-ref HEAD)"

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions