Skip to content

Commit

Permalink
move ragel files to root directory
Browse files Browse the repository at this point in the history
the //line directives used to point to the original "ragel" files were creating problems for the coverage tool. They were being reported without the 'parser/' directory. Causing the go tool cover to look for the wrong files and therefore failing.
Moving it all to the root directory fixes the problem.
  • Loading branch information
AndersonQ committed Jul 25, 2023
1 parent c9d20bb commit 2b6a159
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 171 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions filebeat/input/syslog/format_check.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
6 changes: 3 additions & 3 deletions filebeat/input/syslog/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import (
)

// Parser is generated from a ragel state machine using the following command:
//go:generate ragel -Z -G2 parser/rfc3164_parser.rl -o rfc3164_parser.go
//go:generate ragel -Z -G2 parser/rfc5424_parser.rl -o rfc5424_parser.go
//go:generate ragel -Z -G2 parser/format_check.rl -o format_check.go
//go:generate ragel -Z -G2 rfc3164_parser.rl -o rfc3164_parser.go
//go:generate ragel -Z -G2 rfc5424_parser.rl -o rfc5424_parser.go
//go:generate ragel -Z -G2 format_check.rl -o format_check.go
//go:generate goimports -l -w rfc3164_parser.go
//go:generate goimports -l -w rfc5424_parser.go

Expand Down
Loading

0 comments on commit 2b6a159

Please sign in to comment.