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

syna-start does not work at GitLab-CI #37

Open
certik opened this issue Jul 15, 2020 · 2 comments
Open

syna-start does not work at GitLab-CI #37

certik opened this issue Jul 15, 2020 · 2 comments
Assignees

Comments

@certik
Copy link

certik commented Jul 15, 2020

Is this a BUG REPORT or FEATURE REQUEST?:
bug

What happened:

Fails to properly build with the latest extended Hugo in a docker image at GitLab CI.

How to reproduce it (as minimally and precisely as possible):

I discovered this at my private website, then traced it even to the latest master of syna-start (09caeb5). If you push this master to GitLab, as I have done here:

https://gitlab.com/certik/syna-start

Then create a branch and add a minimal .gitlab-ci.yml and open an MR:

https://gitlab.com/certik/syna-start/-/merge_requests/1

The build will succeed, but the generated files are missing content. Here is the build log:

https://gitlab.com/certik/syna-start/-/jobs/640973648

In the build log, I cat the generated html file at line 43: https://gitlab.com/certik/syna-start/-/jobs/640973648#L43, and as you can see, that html file is incorrect. It doesn't contain any of the content of syna-start.

Anything else we need to know?:

I am using the monachus/hugo Docker image. If I run the image locally, and copy over the website and run hugo from it, then it builds properly.... That makes this extremely hard to track down. I don't know how else to reproduce it besides what I have done above with gitlab.com itself. I can't think of any differences to if I run the docker locally.

Any ideas how to debug this? I spent about 5h debugging this in various ways (tried --debug, --templateMetrics, -DEF, -v etc.). I can't see any difference to my local docker (or non-docker) setup.

But since it fails at GitLab-CI, I have to figure out how to fix it. Other themes seem to work, I've been using Hugo at GitLab in several other projects. I suspect this might be a bug in Hugo itself, but I am posting here first if you have any ideas what could be happening.

Environment:

  • Syna Theme Starter version:
  • Hugo version: Hugo Static Site Generator v0.74.1-15163266/extended linux/amd64 BuildDate: 2020-07-13T19:02:45Z
  • Others:
@stp-ip stp-ip self-assigned this Jul 20, 2020
@stp-ip
Copy link
Member

stp-ip commented Jul 23, 2020

Haven't had time to dig into this. Still on my list of things to debug.

@certik
Copy link
Author

certik commented Jul 23, 2020

@stp-ip thank you!

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

No branches or pull requests

2 participants