-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Propose removing goplugin tags in favor of cgo build tag (implicit). #6604
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
API Changes --- prev.txt 2024-10-05 11:04:34.508925219 +0000
+++ current.txt 2024-10-05 11:04:28.472937700 +0000
@@ -10866,13 +10866,13 @@
FUNCTIONS
func GetAnalyticsHandler(path string, symbol string) (func(record *analytics.AnalyticsRecord), error)
-func GetHandler(path string, symbol string) (http.HandlerFunc, error)
+func GetHandler(modulePath string, symbol string) (http.HandlerFunc, error)
func GetPluginFileNameToLoad(pluginStorage storage, pluginPath string) (string, error)
GetPluginFileNameToLoad check which file to load based on name, tyk version,
os and architecture but it also takes care of returning the name of the file
that exists
-func GetResponseHandler(path string, symbol string) (func(rw http.ResponseWriter, res *http.Response, req *http.Request), error)
+func GetResponseHandler(modulePath string, symbol string) (func(rw http.ResponseWriter, res *http.Response, req *http.Request), error)
func GetSymbol(modulePath string, symbol string) (interface{}, error)
TYPES |
PR Code Suggestions ✨Explore these optional code suggestions:
|
Quality Gate passedIssues Measures |
User description
Plugins require compilation with
CGO_ENABLED=1
; build tag adds unnecessary flags to the tests and build process.Verified with:
When enabled:
Verified with:
Acceptance:
goplugin
tag (goreleaser config change). Follow up with PR.PR Type
enhancement, configuration changes
Description
goplugin
build tags withcgo
build tags across multiple Go files to align with CGO requirements.goplugin
tag from CI test scripts and goreleaser configurations to streamline the build process.Changes walkthrough 📝
analyticsplugin.go
Replace goplugin build tags with cgo in analyticsplugin
goplugin/analyticsplugin.go
goplugin
build tags withcgo
build tags.goplugin.go
Replace goplugin build tags with cgo in goplugin
goplugin/goplugin.go
goplugin
build tags withcgo
build tags.mw_go_plugin_test.go
Replace goplugin build tags with cgo in test file
goplugin/mw_go_plugin_test.go
goplugin
build tags withcgo
build tags.no_analyticsplugin.go
Replace !goplugin build tags with !cgo in no_analyticsplugin
goplugin/no_analyticsplugin.go
!goplugin
build tags with!cgo
build tags.no_goplugin.go
Replace !goplugin build tags with !cgo in no_goplugin
goplugin/no_goplugin.go
!goplugin
build tags with!cgo
build tags.ci-tests.sh
Remove goplugin tag from CI test script
bin/ci-tests.sh
goplugin
tag from CI test script.goreleaser-5.0.yml
Remove goplugin tag from goreleaser-5.0 configuration
ci/goreleaser/goreleaser-5.0.yml
goplugin
tag from build configurations.goreleaser.yml
Remove goplugin tag from goreleaser configuration
ci/goreleaser/goreleaser.yml
goplugin
tag from multiple build configurations.