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

"Conflict: The following destination is shared by multiple files." even when there shouldn't be a conflict #571

Open
thomasdn opened this issue Oct 30, 2023 · 0 comments

Comments

@thomasdn
Copy link

thomasdn commented Oct 30, 2023

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...

@guard guard deleted a comment from LouisaNikita Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant