-
Notifications
You must be signed in to change notification settings - Fork 128
Description
Hello, this is a problem I just debugged and solved for myself for a few hours, and thought it'd be useful to share with others:
I was trying to use the buildtool (latest master, downloaded and put into the Packages folder), but all builds were failing with '1 error' and no more specific issues. It turns out that because the version had been blank (I hadn't known you had to generate a new version), and my desired build paths began with $VERSION/, the paths being produced began with /. This overwrote the build directory when using Path.Combine here:
buildtool/Editor/Build/BuildProject.cs
Line 189 in 99248ed
| string buildPath = Path.Combine(BuildSettings.basicSettings.baseBuildFolder, resolvedPath); |
/, which fails because Unity doesn't have access to that directory.
I think this is a case where the tool should warn or error out before even reaching the build; if a piece of the path would produce an empty string, I think it's worth noting since those issues can cause paths to behave unexpectedly like I saw.