-
Notifications
You must be signed in to change notification settings - Fork 5k
x-pack/filebeat/input/salesforce: Use github.com/elastic/go-sfdc dependency directly
#39840
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
Conversation
…nstead of fork as tip is same
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
github.com/elastic/go-sfdc dependency directly
|
@lalit-satapathy we are missing a review from someone in your team here |
ishleenk17
left a comment
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.
LGTM
Proposed commit message
After talking to @cmacknz, decided to go with the fork and update the dependencies of the same as well. Now, the new input will use github.com/elastic/go-sfdc@master.
See: https://github.com/elastic/go-sfdc
Use the upstream dependency directly instead of the forked version, as the tip is the same i.e., use github.com/g8rswimmer/go-sfdc instead of github.com/elastic/go-sfdc.A while ago, someone reported internally at Slack that they having issues pulling dependencies when using GoLand, although we never encountered this problem, and neither did the CI. We currently use replace directives because we initially planned to fork the repository to add new features. However, we do not have a requirement to add new features at the moment.Instead of forking the repository under theelasticorganization, we can directly use the upstream repository, as the tip of themasterbranch is the same. This change will remove the unnecessary replace directives and potentially resolve any issues people may face when using GoLand, etc.Update: Now it is clear why apm-server was breaking and not beats. apm-server uses beats as a dependency. As the replace directive inside beats' go.mod has no version, it applies to replace to all versions of github.com/g8rswimmer/go-sfdc to point to github.com/g8rswimmer/go-sfdc@master. But now that apm-server is the main module, beats is not; replace directive is not supported. See this. As the replace is not respected, it is not able to find the particular version of the dependency as:
go mod edit -replace=github.com/g8rswimmer/go-sfdc=github.com/elastic/go-sfdc@masterwas used that had no version on LHS. But replace also used no version; so it applied to all versions (irrespective of what's written there).Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related