mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[PR #7] [MERGED] Recursive include parsing #36
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#36
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?
📋 Pull Request Information
Original PR: https://github.com/tufanbarisyildirim/gonginx/pull/7
Author: @riadafridishibly
Created: 4/6/2022
Status: ✅ Merged
Merged: 5/31/2022
Merged by: @tufanbarisyildirim
Base:
master← Head:feature/support-recursive-include-parsing📝 Commits (9)
eb064c2Add parse options81a37adParse includes recursively8fcd03aFind and Get directives from includesc45fe25Include parsing tests06a0a4eUpdate testdata91c76bbAdd dumper for includeb7a7740Paser include guardf3fcffeupdate depsbbe2c0bcheck err first📊 Changes
17 files changed (+247 additions, -7 deletions)
View changed files
📝
block.go(+5 -0)📝
dumper.go(+49 -0)📝
go.mod(+5 -1)📝
go.sum(+26 -0)📝
http.go(+5 -0)📝
include.go(+18 -0)📝
parser/parser.go(+97 -6)📝
parser/parser_test.go(+9 -0)➕
testdata/include-glob/conf.d/location-letsencrypt.conf(+4 -0)➕
testdata/include-glob/conf.d/location-root.conf(+3 -0)➕
testdata/include-glob/events.conf(+3 -0)➕
testdata/include-glob/http.conf(+2 -0)➕
testdata/include-glob/nginx.conf(+5 -0)➕
testdata/include-glob/sites-enabled/conf.d/location-letsencrypt.conf(+2 -0)➕
testdata/include-glob/sites-enabled/conf.d/location-root.conf(+2 -0)➕
testdata/include-glob/sites-enabled/example.com.conf(+6 -0)➕
testdata/include-glob/sites-enabled/mysite.com.conf(+6 -0)📄 Description
Parse included files recursively
Parses the include directives. And lookup directive in the included configs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.