Has the temp directory location changed in the past week?

Our Jekyll build has started failing on an issue in the parent theme. If we rerun old (successful) builds from 6 days ago, they now fail. All versions of dependencies are the same in the successful builds 6 days ago compared to the unsuccessful ones today. I have traced it back to what I believe to be the temp directory now being set to /opt/buildhome/repo/. I believe this might have changed in the past 6 days. When Cloudflare builds:
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip
Remote Theme: Unzipping /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-j3aea2
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip
Remote Theme: Unzipping /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-j3aea2
When building locally:
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip
Remote Theme: Unzipping /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip to /tmp/jekyll-remote-theme-20230412-93-pdotqn
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip
Remote Theme: Unzipping /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip to /tmp/jekyll-remote-theme-20230412-93-pdotqn
Basically, when building in Cloudflare, the parent theme zip is downloaded inside the repo directory where its contents are seen as part of our site, which causes the build error. I've had to enable verbose mode to generate the above output so unfortunately can't see which directory was used when it was working without error 6 days ago. But obviously can see that it uses /tmp when we run the build locally.
9 Replies
James
James2y ago
Cc @walshydev @johndotawesome
JohnDotAwesome
@idrleon I'm seeing that you've got some successful builds now - What ended up being the fix?
Leon
LeonOP2y ago
more of a workaround - I added 'jekyll-remote-theme*' to the excludes in _config.yml
JohnDotAwesome
Hrmm was this your original error?
Liquid Exception: Could not find document 'docs/utilities/typography.md' in tag 'link'. Make sure the document exists and the path is correct. in jekyll-remote-theme-20230412-14794-16si7t8/docs/ui-components/buttons.md
jekyll 3.8.5 | Error: Could not find document 'docs/utilities/typography.md' in tag 'link'.

Make sure the document exists and the path is correct.

Failed: build command exited with code: 1
Liquid Exception: Could not find document 'docs/utilities/typography.md' in tag 'link'. Make sure the document exists and the path is correct. in jekyll-remote-theme-20230412-14794-16si7t8/docs/ui-components/buttons.md
jekyll 3.8.5 | Error: Could not find document 'docs/utilities/typography.md' in tag 'link'.

Make sure the document exists and the path is correct.

Failed: build command exited with code: 1
Leon
LeonOP2y ago
that's correct
JohnDotAwesome
Yeah this is a conundrum. Is there any chance you have time to put-together a simplified public repo which reproduces the issue? I totally understand if not
Leon
LeonOP2y ago
Shouldn't be an issue, I'll pencil it in for tomorrow
Leon
LeonOP2y ago
GitHub
GitHub - leonatherton/cf-pages-issue
Contribute to leonatherton/cf-pages-issue development by creating an account on GitHub.
JohnDotAwesome
Incredible. Thank you!
Want results from more Discord servers?
Add your server