typelevel / typelevel/typelevel.github.com

issue: Duplicate path error during build

未关闭
#610 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
HTML
星标
42
派生
115
平均合并
5 天 5 小时
30 天内合并 PR
7

描述

While running the project locally (served on 127.0.0.1:8000), the typelevel.github.com fails during parsing with multiple duplicate path errors.

Below is the attached screenshot of error message:
Image

This causes the site build to fail and prevents the server from starting successfully.

Possible Cause:
This may be happening due to:

  1. Multiple input directories being merged (e.g., duplicate InputTreeBuilder sources).
  2. The same .well-known directory being included twice in configuration.
  3. A custom Laika configuration adding static documents that conflict with filesystem inputs.
    Based upon my observations:
    This issue is caused due to hardcoding the ".well-known" -
Image

Steps to Reproduce:

  1. Clone the repository
  2. Run the development server
  3. Observe parser failure with duplicate path errors

Suggested fix:
I would suggest removal of the hard-coded .well-known Directory, post of removal the build works absolutely fine.

Would like to raise a PR to fix this issue.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先运行开发服务器,并定位添加硬编码的 .well-known 目录或其他静态文档的配置。将这些输入与文件系统源进行比较,并确认移除重复配置可以消除解析器错误,使网站能够构建和启动。

由索引模型根据 Issue 内容生成。

评估

技术栈
html
领域
build-system
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。