Skip to content

Panic for resources.GetMatch(“https://picsum.photos/400/300.webp”) on Windows #10736

Open
@willfaught

Description

@willfaught

See https://discourse.gohugo.io/t/bug-panic-for-resources-getmatch-https-picsum-photos-400-300-webp-on-windows/43048.

Note: This issue is about fixing Hugo so the panics don't happen at all, and so that behavior is consistent across Mac, Linux, and Windows. The fact that there's a workaround is irrelevant. GetMatch shouldn't panic when given a URL.

This issue is also about having Hugo print the actual panic stack trace so it's easier to debug situations like this. There's nothing actionable about the nil reference message without any context.

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.110.0+extended darwin/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions