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

Disable CGO for all builds #318

Merged
merged 1 commit into from
Apr 6, 2022
Merged

Disable CGO for all builds #318

merged 1 commit into from
Apr 6, 2022

Conversation

hanzei
Copy link
Contributor

@hanzei hanzei commented Apr 6, 2022

Summary

The cloud servers complain about a missing symbol:

error relocating plugins/com.mattermost.apps/server/dist/plugin-linux-amd64: __fprintf_chk: symbol not found

By static linking the binary we not longer rely on a DL to be there.

Ticket Link

None?

@hanzei
Copy link
Contributor Author

hanzei commented Apr 6, 2022

@DHaussermann Please test if this resolves the issue

@hanzei
Copy link
Contributor Author

hanzei commented Apr 6, 2022

On my local machine the bundle is 4kb bigger. 18434400 (new) vs. 18480021(old)

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Apr 6, 2022
@hanzei hanzei added this to the v1.0.1 milestone Apr 6, 2022
@hanzei hanzei mentioned this pull request Apr 6, 2022
1 task
@hanzei hanzei marked this pull request as ready for review April 6, 2022 21:30
@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Apr 6, 2022
Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and passed

  • App runs on servers affected by the issue
  • No error on start up
  • Smoke tested the App
  • Installed and used service now

No issues found.

LGTM!

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Apr 6, 2022
@hanzei hanzei merged commit 557309d into master Apr 6, 2022
@hanzei hanzei deleted the disable_cgo branch April 6, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants