-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we have option for local clone? #44
Comments
Hi @Thaina |
@mob-sakai Thank you very much I actually wish that this functionality should be default behaviour of official UPM. Because we should develop package in this way If possible I wish that instead of an option, it should be default for UPMgit |
@Thaina Do you want to develop a package without using a subtree (that is, without committing to the project repository)? |
@mob-sakai That's right. I expect that the package should always be loosely couple with the project and other packages. So we should just specify only dependencies instead of subtree I think this approach is more compatible with unity package system |
|
@mob-sakai In my use case
|
If you add a package directory to
|
@mob-sakai My point is, I want that process would be automatically done with the git package manager. Because it would be better when we could specified git URL in the package but also could edit it while working in project Suppose I have 2 machines at work and at home or I have a friend that also collaborate to develop the same package, I could just configure the project with package's repo URL. And the manager will pull that URL directly into packages folder (or any local folder that we could work with). Then any of us could make change to package (separate from project) and push to repo of that packages with normal git process. Without the need to setup folder structure of each machine or pull package from git url manually |
Hmm, is the package repository automatically pulled by this plugin? |
For example, every 10 minutes? |
@mob-sakai No, just when the manifest.json was changed by adding git url into it, or the project got opened, and the package repo was not pulled as local folder yet (also trigger if it in package cache but not in packages folder) After it was pulled as local folder, we could fetch and pull to update by other means (such as vscode will auto fetch by itself) |
@Thaina |
@mob-sakai That seem like exactly what I wish for Maybe A little suggestion that this feature might have 9 clone depths by default? (Actually could be any number, just think that it should not be more than 10) ps. Do you have kofi or something that accept little funding but not a subscription? |
Ah, only Paypal... |
Oh shit. Just want to send some gift but then it has a fee in the same amount of my sending. 😰😰😰 |
Oh... thank you for your support!
I noticed this was a mistake. If you are using the subtree split strategy (in other words, if you are developing a package with Unity project directory structure), you will need to merge it into the developer branch after modifying the package. |
@mob-sakai I think that's fine. We should always use UPM from now on instead of unity legacy structure |
Sorry my late reply. What you want is a feature like "npm link". |
@mob-sakai Somehow similar but I'm not sure could UPM work in that way ? |
For example: Step 1: A member clones the project.
Step 2: Toggle on
|
It seems to work well... |
I think this covered all we needed |
I am ready to tackle this feature 👍 |
I assume this was never done/worked on? |
In the scenario that we want to develop package while also make it work directly in other project. I think UPMgit should have an option to actually cloning the git repo into some local folder and add the local path to UPM instead of
PackageCache
folderIs it possible?
The text was updated successfully, but these errors were encountered: