Extract package to dot-started folder instead of raw package name
available in future release
anatawa12
In my opinion, current behavior, extract package to folders with raw package name, will cause problem with user package if we use VCS.
User package will not have "com.vrchat" as prefix of packages, so something like gitignore will became very long.
Therefore, I think it's better to use
.
-prefixed folder name for extracted vpm packages and gitignore '.*/'.(And add
!.com.vrchat.core.*/
as exception of gitignore for vpm resolver.)This behavior is similar to GitDependencyResolverForUnity.
Renaming package directory will not be problem if we use
AssetDatabase.LoadAssetAtPath
.Whatever the name of package folder name is, we can use
Packages/<package id>
with that function.If this problem is going to fixed in the feature release of VPM, I'm sorry.
Log In
Momo the Monster
available in future release
New templates include the chsnge described here, using /*/. let me know if that works for you.
100の人
Momo the Monster:
This .gitignore, which has changed since the VPM release version, also excludes com.vrchat.core.*.
/*/
!com.vrchat.core.*/
com.vrchat.*/
The order should be rearranged as follows.
/*/
com.vrchat.*/
!com.vrchat.core.*/
Momo the Monster
tracked
Thanks for the feedback. How about this solution - we change the .gitignore file included in the Packages folder to instead read:
/*/
!com.vrchat.core.*/
This will ignore all folders added to Packages, except for the core packages which we want to keep in the project (so the resolver is available).
This should produce the same effect of ignore all added packages without needing to modify them all to start with a dot.
anatawa12
Momo the Monster:
I think it's not good because it prevents us to add some non-vpm embedded package unless we add exclusion.
I've considered that but I think it's not better so I suggested dot-started folder names.
One type of such a project is VPM package project.
Momo the Monster
anatawa12: outside of the VPM, embedded packages are used for development. Which other embedded packages would you use in your project that don't come from VPM? If they're not part of the system, it would be better to use them through the Unity Package Manager as Registry or Git packages.
anatawa12
Momo the Monster: Yes that's used for development & for development environment, we need to add ignore exception.