"Conflict: The following destination is shared by multiple files." even when there shouldn't be a conflict
thomasdn opened this issue · comments
Hi,
I use jekyll on Linux.
When I build my project, I get this error:
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/home/username/projects/websites/mysite/jekyll-site/_site/da/index.html
- _pages/da/index.md
- /home/username/projects/websites/mysite/jekyll-site/_pages/da/index.md
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/home/username/projects/websites/mysite/jekyll-site/_site/index.html
- _pages/index.md
- /home/username/projects/websites/mysite/jekyll-site/_pages/index.md
Originally, I thought this was relating to this: #273
However, it does not seem any of the mentioned paths are symlinks, so no loops should be there...
Am not sure where jekyll even gets the absolute path from as I only ever use relative paths in this project.
I have grepped for /home
in my project and it is not mentioned.
Env info: jekyll 4.3.1 on Debian 12.2
Edit: I forgot to mention: the conflicting files are in fact the same files. That is: _pages/index.md is just the relative path of /home/username/projects/websites/mysite/jekyll-site/_pages/index.md, so of course they have the same destination - its the same file...
I think the issue here is that jekyll seemingly sometimes use the relative path and other times uses the absolute path.
I cannot think of a valid reason to ever use the absolute path...