Skip to content
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

use $CGO_CGOENABLED instead of $CGO_CGOENABLE that doesnt exist #4160

Closed
wants to merge 2 commits into from

Conversation

sredxny
Copy link
Contributor

@sredxny sredxny commented Jun 28, 2022

Description

In the plugin compiler, in the command to compile a plugin use the proper value to set for CGO_CGOENABLE var. It's an outcome for the comment in #3873 (comment)

At this point I think as well we should remove it as officially the plugin compiler will only work for linux OS and not windows/darwin etc... so it sounds to me that we should not support this param.

Related Issue

  • To be created

Motivation and Context

Be consistent

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring or add test (improvements in base code or adds test coverage to functionality)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
    fork, don't request your master!
  • Make sure you are making a pull request against the master branch (left side). Also, you should start
    your branch off our latest master.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
    • If new config option added, ensure that it can be set via ENV variable
  • I have updated the documentation accordingly.
  • Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • When updating library version must provide reason/explanation for this update.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • go fmt -s
    • go vet

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jun 28, 2022

API tests result: success
Branch used: refs/pull/4160/merge
Commit:
Triggered by: pull_request (@sredxny)
Execution page

@titpetric
Copy link
Contributor

I don't see why we couldn't extend support to arm64 targets for example. Given goos and goarch arguments and a cross build dockerfile base, unofficially at the very least, we do enable people doing that.

You made a quick find/replace, but you missed the variable name, it's CGO_ENABLED; currently it's unset (unless it's in the Dockerfile), setting it to =1 would likely change behavior? I'd appreciate a bit of an investigation, or a short think. I think, we shouldn't set CGO_ENABLED and just remove the non functional bits here, keep behavior.

@sonarcloud
Copy link

sonarcloud bot commented Jun 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Jun 28, 2022

API tests result: success
Branch used: refs/pull/4160/merge
Commit: 4ba4d14
Triggered by: pull_request (@sredxny)
Execution page

@titpetric
Copy link
Contributor

Hate to say it, but still a typo (missing underscore). Next one will cost you a michelada 📃😅

Check out the rest of the first comment, maybe we don't need any changes at all, other than a cleanup/removal. I'd prefer that over this

@titpetric titpetric closed this Aug 26, 2022
@titpetric
Copy link
Contributor

Closing as stale/incorrect multiple times, if you need it file a ticket.

@titpetric titpetric reopened this Aug 26, 2022
@titpetric titpetric closed this Aug 26, 2022
@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 26, 2022

API tests result: success
Branch used: refs/pull/4160/merge
Commit:
Triggered by: pull_request (@titpetric)
Execution page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants