-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can't build website locally #107
Comments
This is something related to your local configuration. As you can see from the log, your local Git client is failing to clone the Poetry sources, which contain the docs content. Can you please provide the |
Git version: 2.25.1 It's a normal Ubuntu system, no WSL involved. |
No issues cloning any other git repos. |
Ah, it looks like we likely require Git 2.26 as a minimum version. If you are unable to update to a newer set of tools, I'd suggest using a container to build the website. |
Git 2.25.1 is the version given by the default Ubuntu apt repository. I'll see whether using the latest Git version solves the problem. |
Right, I'm not saying that your Git is out of date relative to the OS version -- but it looks like we started requiring features from newer versions without noticing to speed up CI. If the Git version is the issue, we'll probably document the known lower bound and suggest that users who are unable to update use a container (Docker or LXC) or chroot to build. |
I installed Git 2.39.1 from the Ubuntu Git Maintainers PPA. Now it appears to clone the repo, but it later fails with the following message:
Output following poetry run ./bin/website docs pull
The currently activated Python version 3.8.10 is not supported by the project (^3.10).
Trying to find and use a compatible version.
Using python3 (3.10.10)
Pulling documentation for version 1.3 as 1.3
Cloning into '.'...
remote: Enumerating objects: 239, done.
remote: Counting objects: 100% (239/239), done.
remote: Compressing objects: 100% (159/159), done.
remote: Total 239 (delta 1), reused 193 (delta 1), pack-reused 0
Receiving objects: 100% (239/239), 33.53 KiB | 1.29 MiB/s, done.
Resolving deltas: 100% (1/1), done.
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 0), reused 3 (delta 0), pack-reused 0
Receiving objects: 100% (13/13), 85.66 KiB | 2.04 MiB/s, done.
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 14 (delta 0), reused 2 (delta 0), pack-reused 0
Receiving objects: 100% (14/14), 48.58 KiB | 1.73 MiB/s, done.
[Errno 2] No such file or directory: 'content/docs/dependency-specification.md'
make: *** [Makefile:26: content/docs] Error 1 |
I suggest you start with a clean clone of the website repo -- it looks like you've got an inconsistent state. |
I did start with a clean clone. I can reproduce the previous output with these commands: cd "$(mktemp --dir)"
git clone https://github.com/python-poetry/website.git
cd website/
make site |
Your output doesn't make sense -- |
Also, if you're trying to build locally to test docs changes, I'd suggest |
I am trying to build locally to test docs changes. I'll try your suggestion and share the result.
I just deleted the stuff before running the pull command because I thought it was irrelevant. Running the command directly, without the Makefile produces the same error:
|
A regular |
When I clone the Poetry source like this, the site builds and I can browse it locally at http://localhost:1313/. cd "$(mktemp --dir)"
git clone https://github.com/python-poetry/poetry.git
git clone https://github.com/python-poetry/website.git
cd website/
make POETRY_REPO=../poetry site Full output from make for reference:
|
It's also worth noting that if you open a docs PR against Poetry, every commit you push will result in a preview build for reviewers. I'm still not sure why you can't build locally; I am able to do so on Ubuntu 20.04 with an updated Git. I suspect there is something else exotic about your configuration, but at the same time, it's not really relevant as you were never trying to build the website with the upstream sources. |
I opened a PR (python-poetry/poetry#7506), but I don't know if it is properly configured as a "docs PR". It doesn't have the
I wonder what it could be! I'm going to try a little harder to find out, but if I don't, I'll just close this because I have a workaround for my case now. |
I couldn't figure out why it doesn't work in my usual environment, but I don't have to because of the documented workaround. |
It's not really a workaround -- we haven't identified a workaround to let you build the production website, but that wasn't what you wanted to do anyway. |
The local development instructions don't work for me.
When I run
make site
, eventually I get the following error:A similar issue #36 was reported and closed without a documented solution.
Full terminal output:
Environment:
The text was updated successfully, but these errors were encountered: