Propose removing goplugin tags in favor of cgo build tag (implicit). #6604
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.