Skip to content

Shared paths of new and old version of components breaks build #3477

@DerekNonGeneric

Description

@DerekNonGeneric

🐛 Bug Report

Current behavior

A clear and concise description of the bug you found in amp.dev.

Running gulp develop crashes.

    raise PathConflictError(path, value, self.value)
grow.routing.routes.PathConflictError
: Path already exists: /documentation/components/amp-date-display.html (<RouteInfo kind=doc meta={'locale': 'en', 'pod_path': u'/content/amp-dev/documentation/components/reference/amp-date-display-v0.1.md', 'collection_path': '/content/amp-dev/documentation/components/reference/'}> != <RouteInfo kind=doc meta={'locale': 'en', 'pod_path': u'/content/amp-dev/documentation/components/reference/amp-date-display-v0.2.md', 'collection_path': '/content/amp-dev/documentation/components/reference/'}>)
    raise PathConflictError(path, value, self.value)
grow.routing.routes.PathConflictError: Path already exists: /documentation/components/amp-next-page.html (<RouteInfo kind=doc meta={'locale': 'en', 'pod_path': u'/content/amp-dev/documentation/components/reference/amp-next-page-v0.2.md', 'collection_path': '/content/amp-dev/documentation/components/reference/'}> != <RouteInfo kind=doc meta={'locale': 'en', 'pod_path': u'/content/amp-dev/documentation/components/reference/amp-next-page-v1.0.md', 'collection_path': '/content/amp-dev/documentation/components/reference/'}>)

Please also provide:

  • Page link: <insert the URL link to the amp.dev page(s) that you found the issue on>
  • (Optional) Screenshots/videos:

Expected behavior/code

A clear and concise description of what you expected to happen.

amp-date-display-v0.1.md & amp-date-display-v0.2.md not use the same path.

amp-next-page-v1.0.md & amp-next-page-v.0.1md not use the same path.

Reproduction procedure

Please provide the steps to reproduce the problem:

  1. npm i && npx gulp bootstrap && npx gulp develop

  • What browser are you using? Windows Server (WSL Debian 10)
  • What O/S are you using? n/a

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions