Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Error in GetGitVersion() in BuildPackage.cs on macOS/Unix/Linux #29

Open
dblatner opened this issue Feb 21, 2019 · 3 comments
Open

Error in GetGitVersion() in BuildPackage.cs on macOS/Unix/Linux #29

dblatner opened this issue Feb 21, 2019 · 3 comments

Comments

@dblatner
Copy link

When building Poly Unity Package from Github sources (using Unity Menu Poly > Dev > build .unitypackage) , Unity throws an error from method
static string GetGitVersion()
inside the file "BuildPackage.cs".

Error: "git.exe describe exited with code 128"

On Unix machines (macOS, Linux, ...) there is no "git.exe", instead I tried using "git" but the method does not perform it's operation well.

To be able to build it, I just inserted a fixed string for the version number, then the build worked. So the error is just in this method.

@dubois
Copy link

dubois commented Feb 22, 2019

It sounds like you might not have pulled tags from the repo, or you're not beyond some version-tagged commit.

That method is mostly for our use to create unity packages to put onto github, so if the engineer making them doesn't have the proper environment then we'd rather they fail.

@dblatner
Copy link
Author

What is the "proper" build environment?

@dubois
Copy link

dubois commented Feb 25, 2019

I don't know sufficient conditions, but necessary is one in which git.exe exists and the repo satisifies #2 above

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants