gatsby build produces different output between ubuntu 22.04 and windows-2022 (on github actions) #38832
Open
2 tasks done
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
Yesterday I found that the output (=artifact on github actions) produced by running github actions(ubuntu-22.04) and my windows local computer are different. The root page(https://example.com),
(root)/index.html
, shows the contents written onabout.md
, which is completely unexpected and not occur on my local environment (notgatsby develop
, butgatsby build
). This should render contents onindex.md
on(root)/index.html
.I confirmed like three times that I do not using the wrong or different npm, yarn, and ubuntu version on both computers.
Detailed description is also below. This issue is already solved for me by changing build OS to windows-latest, so this is not a question but dedicated for a bug report.
https://stackoverflow.com/questions/77901772/gatsby-build-produces-different-result-on-github-actions/77908429#77908429
Repository causing the issue
https://github.com/AoSankaku/aosankaku.github.io
You can confirm the issue by cloning and building a website using github actions. Please do not try to make this public because the contents (articles, images) are lisenced under All Right Reserved.
Branch
cee5bf44dc3f99a0e8e410d481ed14e0f44daf5c
is working fine, and branches untila40ae460e22fa2110f06c184ac8cc6d97a3f8460
is behaving badly.Artifacts (Outputs)
Artifact that is created by ubuntu-22.04
github-pages.zip
Artifact that is created by windows-latest(windows-2022)
github-pages1.zip
My own
gatsby build
result (contains some files which is unused in production build)public.zip
Reproduction Link
https://aosankaku.github.io
Steps to Reproduce
Do not use the latest build to reproduce the issue, as this is fixed by using
windows-latest
instead ofubuntu-22.04
.I'm saying that this is strange that on windows and on ubuntu the
gatsby build
result must not differ from each other.Expected Result
Produces the same website (at least the contents and pages on the website!) on both windows and ubuntu environment
Actual Result
The production build on windows and ubuntu are different on
index.html
.Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: