You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blt deploy fails without any error details when there's no git user email set.
To Reproduce
Comment out with # user.name and user.email from your ~/.gitconfig
Run blt deploy on a project
Expected behavior
blt deploy works with some dummy git author info, or fails with a specific error message that you have to set that
Detailed error output
› [Acquia\Blt\Robo\Tasks\GitTask] git rm -r --cached --ignore-unmatch --quiet . && git add -A &&
› git -c user.name='BLT dummy user' -c user.email='no-reply@example.com' commit -m 'Deploy
› 1.0.27' --quiet
› [Acquia\Blt\Robo\Tasks\GitTask] Running git rm -r --cached --ignore-unmatch --quiet . &&
› git add -A &&
› git -c user.name='BLT dummy user' -c user.email='no-reply@example.com' commit -m 'Deploy
› 1.0.27' --quiet in /home/acquia/vagrant1/deploy
› [Acquia\Blt\Robo\Tasks\GitTask] Done in 6.932s
› [ExecStack] git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Running git tag -a 1.0.27 -m 'Deploy 1.0.27' in /home/acquia/vagrant1/deploy
› [ExecStack] Exit code 128 Time 0.004s
› [ExecStack] git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Running git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Exit code 128 Time 0.005s
› [ExecStack] git push 33b9c3c2d632f5b516f7b1e11d17d5f3 1.0.27
› [ExecStack] Running git push 33b9c3c2d632f5b516f7b1e11d17d5f3 1.0.27 in
› /home/acquia/vagrant1/deploy
› [ExecStack] Exit code 1 Time 0.004s
› [error] Failed to push deployment artifact!
BLT doctor output
Post the full output of blt doctor in the failing environment here.
System information
Operating system type: Linux
Operating system version: Fedora 30
BLT version: 10.x-dev
Additional context
Note that git tag is reported to failed with exit code 128 but git push continues despite that. That's another problem.
In this case, git tag is failing because no git user, git push is failing because no tag is created.
But the git output is missing, although blt is ran with -vvv.
[acquia@localhost deploy]$ git tag -a 1.0.27 -m 'Deploy 1.0.27'*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.Omit --global to set the identity only in this repository.fatal: unable to auto-detect email address (got 'acquia@localhost.(none)')[acquia@localhost deploy]$ echo $?128[acquia@localhost deploy]$ git push 33b9c3c2d632f5b516f7b1e11d17d5f3 1.0.27error: src refspec 1.0.27 does not match anyerror: failed to push some refs to 'aszaszbltproject1@svn-6061.devcloud.hosting.acquia.com:aszaszbltproject1.git'[acquia@localhost deploy]$ echo $?1
The text was updated successfully, but these errors were encountered:
Thanks for the report, I guess no one realized at the time that git tag -a also requires author info. Please test #3586 and let me know if it works for you.
Describe the bug
Related to #3511 and #2940.
blt deploy fails without any error details when there's no git user email set.
To Reproduce
Comment out with # user.name and user.email from your ~/.gitconfig
Run blt deploy on a project
Expected behavior
blt deploy works with some dummy git author info, or fails with a specific error message that you have to set that
Detailed error output
› [Acquia\Blt\Robo\Tasks\GitTask] git rm -r --cached --ignore-unmatch --quiet . && git add -A &&
› git -c user.name='BLT dummy user' -c user.email='no-reply@example.com' commit -m 'Deploy
› 1.0.27' --quiet
› [Acquia\Blt\Robo\Tasks\GitTask] Running git rm -r --cached --ignore-unmatch --quiet . &&
› git add -A &&
› git -c user.name='BLT dummy user' -c user.email='no-reply@example.com' commit -m 'Deploy
› 1.0.27' --quiet in /home/acquia/vagrant1/deploy
› [Acquia\Blt\Robo\Tasks\GitTask] Done in 6.932s
› [ExecStack] git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Running git tag -a 1.0.27 -m 'Deploy 1.0.27' in /home/acquia/vagrant1/deploy
› [ExecStack] Exit code 128 Time 0.004s
› [ExecStack] git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Running git tag -a 1.0.27 -m 'Deploy 1.0.27'
› [ExecStack] Exit code 128 Time 0.005s
› [ExecStack] git push 33b9c3c2d632f5b516f7b1e11d17d5f3 1.0.27
› [ExecStack] Running git push 33b9c3c2d632f5b516f7b1e11d17d5f3 1.0.27 in
› /home/acquia/vagrant1/deploy
› [ExecStack] Exit code 1 Time 0.004s
› [error] Failed to push deployment artifact!
BLT doctor output
Post the full output of
blt doctor
in the failing environment here.System information
Additional context
Note that git tag is reported to failed with exit code 128 but git push continues despite that. That's another problem.
In this case, git tag is failing because no git user, git push is failing because no tag is created.
But the git output is missing, although blt is ran with -vvv.
The text was updated successfully, but these errors were encountered: