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

plugin: fix plugin build and load with go 1.13 #13455

Merged
merged 5 commits into from
Nov 15, 2019
Merged

plugin: fix plugin build and load with go 1.13 #13455

merged 5 commits into from
Nov 15, 2019

Conversation

lysu
Copy link
Contributor

@lysu lysu commented Nov 14, 2019

What problem does this PR solve?

fixes #12927

due to Go1.13's issues golang/go#34143 and golang/go#31278 (comment)

we need remove -trimpath in tidb makefile and -pluginpath in plugin build tool to let plugin can work with go1.13

What is changed and how it works?

  • remove -trimpath from makefile
  • disable pluginpath in pluginpkg

Check List

Tests

  • Manual test

build and load plugin

Code changes

  • change build script and build tool

Side effects

  • n/a

Related changes

  • n/a

Release note

  • fix plugin build and load with go 1.13

This change is Reviewable

- revert `-trimpath`
- disable `pluginpath`
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@lysu lysu added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 14, 2019
@codecov
Copy link

codecov bot commented Nov 14, 2019

Codecov Report

Merging #13455 into master will increase coverage by 0.2237%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #13455        +/-   ##
================================================
+ Coverage   80.2044%   80.4282%   +0.2237%     
================================================
  Files           472        472                
  Lines        114243     114987       +744     
================================================
+ Hits          91628      92482       +854     
+ Misses        15444      15323       -121     
- Partials       7171       7182        +11

@coocood
Copy link
Member

coocood commented Nov 14, 2019

LGTM

@lysu
Copy link
Contributor Author

lysu commented Nov 14, 2019

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 14, 2019
@lysu lysu added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 14, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

@lysu merge failed.

@lysu
Copy link
Contributor Author

lysu commented Nov 14, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

@lysu merge failed.

@jackysp
Copy link
Member

jackysp commented Nov 14, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 14, 2019

@lysu merge failed.

@lysu
Copy link
Contributor Author

lysu commented Nov 15, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

/run-all-tests

@sre-bot sre-bot merged commit bb841d7 into pingcap:master Nov 15, 2019
@lysu lysu deleted the dev-remove-trimpath-pluginpath branch November 15, 2019 10:01
@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

cherry pick to release-3.0 failed

@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

cherry pick to release-3.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Nov 15, 2019

cherry pick to release-2.1 failed

@YIDWang
Copy link

YIDWang commented May 7, 2022

去掉 pluginpath,是否还是支持多版本同时加载的呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugin component/server status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugin can't load with -trimpath TiDB-server in go1.13
5 participants