-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pull-mode): adds file discovery mechanism #662
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @linthan! This is awesome! I've left a couple of minor notes – please take a look.
|
Codecov Report
@@ Coverage Diff @@
## main #662 +/- ##
=======================================
Coverage 75.76% 75.76%
=======================================
Files 45 45
Lines 1588 1588
Branches 292 292
=======================================
Hits 1203 1203
Misses 356 356
Partials 29 29 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please run go mod tidy
and commit go.mod
and go.sum
.
pkg/scrape/discovery/file/file.go
Outdated
|
||
// NewDiscovery returns a new file discovery for the given paths. | ||
func NewDiscovery(conf *SDConfig, logger logrus.FieldLogger) *Discovery { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, revive linter complains about this empty line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, thank you @linthan !
@linthan Could you please remove that extra line after |
@petethepig ok ,I will solve this. |
* add file discovery * fix log error and deal with kebab-case config rules * gomod * remove extra line to pass go-lint check
add this feature.
#640