-
Notifications
You must be signed in to change notification settings - Fork 5k
Replace generate_imports python script with mage imports #14498
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
Changes from all commits
ebd46d1
241b0d2
c2fe059
c210953
9728b29
c212b81
733926c
c2c9fb6
65aa001
bda6d98
a245a7f
cc1d213
fda4837
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,17 +48,7 @@ func RunSetup() error { | |||||||||||||||||
| if err != nil { | ||||||||||||||||||
| return errors.Wrapf(err, "error copying pkg to %s", vendorPath) | ||||||||||||||||||
| } | ||||||||||||||||||
| return LinkImportsHelper() | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| // LinkImportsHelper links generate_imports_helper.py | ||||||||||||||||||
| func LinkImportsHelper() error { | ||||||||||||||||||
| vendorPath := "./vendor/github.com/" | ||||||||||||||||||
| pwd, err := os.Getwd() | ||||||||||||||||||
| if err != nil { | ||||||||||||||||||
| return errors.Wrap(err, "error gettting current directory") | ||||||||||||||||||
| } | ||||||||||||||||||
| return sh.Run("ln", "-sf", filepath.Join(pwd, vendorPath, "elastic/beats/metricbeat/scripts/generate_imports_helper.py"), filepath.Join(pwd, vendorPath, "elastic/beats/script/generate_imports_helper.py")) | ||||||||||||||||||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is sth which requires a careful look, not sure if it's ok to remove. Maybe @fearful-symmetry can comment here.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new go generator has its own code for linking that, so I'm not sure what's using this? beats/generator/common/beatgen/setup/setup.go Lines 55 to 62 in 72f2bf9
|
||||||||||||||||||
| return nil | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| // CopyVendor copies a new version of beats into the vendor directory of PWD | ||||||||||||||||||
|
|
||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.