mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[GH-ISSUE #55] WithCustomDirectives is broken #25
Labels
No labels
bug
enhancement
good first issue
pull-request
question
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gonginx#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nf-brentsaner on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/55
Originally assigned to: @tufanbarisyildirim on GitHub.
You never initialize the
p.opts.customDirectivesmap, leading to apanic: assignment to entry in nil mapon line 95 of parser/parser.go.@tufanbarisyildirim commented on GitHub (Nov 15, 2024):
Hi @nf-brentsaner can you please share a bit more like the code you run? I can't reproduce this
@nf-brentsaner commented on GitHub (Nov 15, 2024):
Sure thing. Here's a minimum example demonstrating.
Here's the version I have imported for it:
(which should be current default
HEAD)And here's the panic:
@tufanbarisyildirim commented on GitHub (Nov 15, 2024):
please remove
parser.WithDefaultOptions()it will work for you with no issue and I'm taking care of it now. good catch!