-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
2.0.0-beta.22 breaks cross-repo deploy to GitHub Pages #7744
Comments
Looks like a bug with #7702? Could you try running 0.0.0-5163? |
Yes deploying with 0.0.0-5163 is fine. Could be related to this issue |
I have taken a look at the PR content. It may be possible that by copying over local However, I'm deploying to a different repo other than the source repo, which has a different "origin" url. This causes a problem. When coping over the git config file, the destination origin is also overwritten. Hence, git will push to a different repository and naturally fail. |
cc @ghostsquad Any ideas? |
In my humble opinion, it would be counter-intuitive to copy git configs during deployment. It should be up to the CI to set up the desired git configuration environment, either via environment variables or, in the case of more advanced configs such as gpg signing key, via global configuration |
The problem is that I don't want to just deploy via CI. A local deployment should be valid as well. Let me look at the error... |
You can always change your |
I can submit a pull request to add a git configuration map to the main config file that is used for this operation. It would allow arbitrary configuration to be applied after the clone operation. |
literally the only thing I need to change is some simple stuff like my email, gpg key, etc. It shouldn't be necessary to reproduce the entirety of what's already being done just to inject some git config. |
Here is an email thread from the Git developers that may be interesting for you to read. (https://lore.kernel.org/git/[email protected]/T/) It would be a lot simpler to just use environment variables. Alternatively, you can also use the conditional includes feature of git config. Both methods seem to be more intuitive (i.e. less hacks) solutions to your problem. |
This reverts commit ee376d1. All git config fields can be set via the GIT_CONFIG_KEY_<n> and GIT_CONFIG_VALUE_<n> env vars. Ref: https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGCOUNT Alternatively, you can also use the conditional includes feature of git config. Ref: https://git-scm.com/docs/git-config#_conditional_includes resolves facebook#7744
@yechs I think you are right. I'll file a revert for this. |
This reverts commit ee376d1. All git config fields can be set via the GIT_CONFIG_KEY_<n> and GIT_CONFIG_VALUE_<n> env vars. Ref: https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGCOUNT Alternatively, you can also use the conditional includes feature of git config. Ref: https://git-scm.com/docs/git-config#_conditional_includes fixes facebook#7744
I have upgraded to the beta22 now and I can't deploy too, exactly the same problem. |
I guess you'll have to wait until #7750 gets merged and hopefully they'll release a hotfix soon enough |
Until next bugfix release, you should be able to use the latest canary version |
I will wait for the beta.23 release. |
Fixed in rc1, deploying works well again thx |
Still getting this error in 2.0.1.
|
Version 2.0.1 breaks the github actions deploy. Based on the issue below, docusaurus was working on 2.0.0-rc1. This commit downgrades docusuarus to the latter version. See: facebook/docusaurus#7744
Version 2.0.1 breaks the github actions deploy. Based on the issue below, docusaurus was working on 2.0.0-rc.1. This commit downgrades docusuarus to the latter version. See: facebook/docusaurus#7744
Version 2.0.1 breaks the github actions deploy. Based on the issue below, docusaurus was working on 2.0.0-rc.1. This commit downgrades docusuarus to the latter version. See: facebook/docusaurus#7744
I have deployed two times using v2.0.1 and don't have any problems. |
Version 2.0.1 breaks the github actions deploy. Based on the issue below, docusaurus was working on 2.0.0-rc.1. This commit downgrades docusuarus to the latter version. See: facebook/docusaurus#7744
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Updating to docusaurus v2.0.0-beta.22 breaks my deployment to GitHub Pages.
The relevant commandline error follows:
According to the command line output, it looks like a shallow update problem. However, the weird thing is, docusaurus has been doing shallow clone deployments for almost a year now and has never failed before.
Relevant PR: #5748
Logs
If you want a full log, there is one available from GitHub Actions (https://github.com/yechs/website/runs/7256462347)
And here is the successful log running
yarn deploy
on v2.0.0-beta.21 three days ago (https://github.com/yechs/website/runs/7204294330)Reproduction
Just to rule out the variables of GitHub Actions or GitHub changing their behavior:
I've ran
yarn deploy
locally on v2.0.0-beta.22 and it failed with the same message.I have also manually reverted back to v2.0.0-beta.21 and ran
yarn deploy
, which functioned perfectly normal. (Note that it is doing the same shallow clone)Reproducible demo
https://github.com/yechs/website/
Steps to reproduce
yarn deploy
git checkout 193d6e0
to go back to docusaurus v2.0.0-beta.21yarn
to install dependenciesyarn deploy
Expected behavior
Deployment continues to function as in v2.0.0-beta.21
Actual behavior
Deployment fails. See log from GitHub Actions.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: