-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manual build and deploy process fails if git user.useConfigOnly option is set #53
Comments
As an attempt at a workaround, I tried the following process and while it worked to push code, the site is failing because the vendor directory is gitignored in the deploy directory, so isn't committed and pushed to the target repo.
|
Hm. This is a tricky problem. We've found that it's best to wipe out the deploy directory prior to generating the artifact, since it's the only way to ensure a clean build. I'm thinking the only two options are:
|
Preserving the I don't think I want to build in specific support for a git username and email, since it really seems like an edge case. Deploys are typically run from a CI tool, and I can't imagine a scenario where a dedicated CI tool needs to support multiple Git identities for deployments. Feel free to prove me wrong though. |
Well, #22 was solved differently, I agree with Matt that preserving the .git directory isn't the best solution to this. My recommendation would be to support two new arguments ( @ba66e77 is this still a requirement for you? |
Yes, it still is. I've swallowed my pride and removed the useConfigOnly option in order to work around it, but that causes its own set of issues. I'd dearly love if this could be supported somehow. Setting the new arguments you mentioned in the project.local.yml certainly seems viable to me. |
@ba66e77 feel like testing #1323? You can apply it as a patch to an existing project like so: https://patch-diff.githubusercontent.com/raw/acquia/blt/pull/1323.patch |
When git's useConfigOnly option is set and the user.name and user.email is not set globally, running the process to create the build artifact and deploy it as defined in the deploy instructions fails with the error below.
Setting the user config in the deploy directory does not successfully work around the problem since the deploy directory is wiped out each time as the first step in the deploy:artifact:prepare-dir step.
The text was updated successfully, but these errors were encountered: