11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.14k stars 493 forks source link

Duplicate permalink error with 2.0.0-canary.5 #2333

Closed eatyourgreens closed 2 years ago

eatyourgreens commented 2 years ago

Describe the bug I have a paginated template which worked fine up until 2.0.0-canary.4 but now fails with duplicate permalink errors in 2.0.0-canary.5.

Output conflict: multiple input files are writing to `dist/groups/the-geological-magazine-or-monthly-journal-of-geology/index.html`. Use distinct `permalink` values to resolve this conflict.

To Reproduce My pagination setup looks like this:

pagination:
  data: groups
  resolve: values
  size: 1
  alias: group
permalink: "/groups/{{ group.name }}/"

The group object that's are causing the error looks like this:

groups: {
  ...
  GSC000000m: {
    name: 'the-geological-magazine-or-monthly-journal-of-geology',
    title: 'The geological magazine, or, Monthly journal of geology.'
    ...
  }
}

With 2.0.0-canary.4 and earlier, that group writes to:

dist/groups/the-geological-magazine-or-monthly-journal-of-geology/index.html

With 2.0.0-canary-5, I get the duplicate permalink error and the build fails. I can't see anything else in my setup that's writing to that URL.

Expected behavior The build should continue to work, I guess.

zachleat commented 2 years ago

Maybe related to the fix that went into 2.0.0-canary.5 for #2167

zachleat commented 2 years ago

Can we retest this with 2.0.0-canary.9? Thank you!

eatyourgreens commented 2 years ago

Sure!

eatyourgreens commented 2 years ago

Builds are running successfully here: https://github.com/zooniverse/science-gossip-data/pull/20

I think it’s fixed. Thank you!

zachleat commented 2 years ago

Yay!