Skip to content
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

docs push is broken #1392

Closed
berquist opened this issue Mar 20, 2024 · 2 comments · Fixed by #1410 or #1411
Closed

docs push is broken #1392

berquist opened this issue Mar 20, 2024 · 2 comments · Fixed by #1410 or #1411
Assignees
Milestone

Comments

@berquist
Copy link
Member

Caused by _version.py stuff introduced in #1373.

@berquist
Copy link
Member Author

Run cd doc && make default
  cd doc && make default
  shell: bash -eo pipefail -l {0}
make -C sphinx default
make[1]: Entering directory '/__w/cclib/cclib/doc/sphinx'
Checking out prod...
git clone https://github.com/cclib/cclib.git _build/cclib_prod
Cloning into '_build/cclib_prod'...
cd _build/cclib_prod; git checkout v1.8.1
Note: switching to 'v1.8.1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 07260dd0 Merge pull request #1387 from berquist/changelog-1.8.1
Updating prod...
cd _build/cclib_prod; git checkout v1.8.1; git fetch --all --tags
HEAD is now at 07260dd0 Merge pull request #1387 from berquist/changelog-1.8.1
Fetching origin
cd _build/cclib_prod; find . -name "*.pyc" -delete
Generating prod attributes...
ln -fs _build/cclib_prod/cclib cclib
python attributes.py > attributes.rst
Traceback (most recent call last):
  File "/__w/cclib/cclib/doc/sphinx/attributes.py", line 9, in <module>
    import cclib
  File "/__w/cclib/cclib/doc/sphinx/cclib/__init__.py", line 20, in <module>
    from cclib._version import __version__
ModuleNotFoundError: No module named 'cclib._version'
make[1]: *** [Makefile:67: attributes.rst] Error 1
make[1]: Leaving directory '/__w/cclib/cclib/doc/sphinx'
make: *** [Makefile:5: sphinx] Error 2

@berquist
Copy link
Member Author

The build itself is fixed, but push is broken due to the Action. It complains SSH_DEPLOY_KEY isn't set. On one hand, our setup is slightly different from https://cpina.github.io/push-to-another-repository-docs/setup-using-ssh-deploy-keys.html#setup-ssh-deploy-keys. On the other, it worked before...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant