mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

appveyor git errors

Open isiyu opened this issue 9 years ago • 3 comments

@BergWerkGIS didn't get to anything conclusive today - looked like it was failing at the commit step. David and I have a couple of commits in appveyor that fail at the same spot.

Can you take a look? thanks!

isiyu avatar Jun 01 '17 03:06 isiyu

Problem is that the git configuration or git version on AppVeyor seems to have changed.

Obviously AppVeyor has dropped its global configuration for (git) username and (git) useremail. It's not possible to commit when those or dedicated ones for the repo are not set.

Before it was user.name=appveyor/user.email=appveyor:

$ git log -n 1
commit b68742b6b23b5bcc9ca3be087d5c2ec951b08a26
Author: appveyor <appveyor>
Date:   Tue May 16 18:46:50 2017 +0000

image

Essentially we are creating a new repo at that step and before it took the global settings (which don't exist anymore).

Just like the error message says we would have to run either (global):

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

or (just for the new repo)

git config user.email "[email protected]"
git config user.name "Your Name"

Which version we choose doesn't matter as that instance is terminated after the build.

Question: which username and email should we use? Those show up in the commit history. Do we have unity dedicated Github bot already? Or should we use another existing Mapbox bot?

wilhelmberg avatar Jun 01 '17 08:06 wilhelmberg

Set git config to appveyor/appveyor as was before: https://github.com/mapbox/mapbox-unity-sdk/commit/29dd86bfcd801cb03594fb516f307b47736ff513

git push succeeded: https://ci.appveyor.com/project/Mapbox/mapbox-unity-sdk/build/1.0.647#L1709

Branch appveyor-test should be merged as I added mb-pages and gh-pages to the backlist that we don't start builds when pushing to the doc branch: image

wilhelmberg avatar Jun 01 '17 10:06 wilhelmberg

Closed: #108

david-rhodes avatar Jun 02 '17 17:06 david-rhodes