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

update go to 1.21 #1709

Merged
merged 4 commits into from
Aug 1, 2024
Merged

update go to 1.21 #1709

merged 4 commits into from
Aug 1, 2024

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Jul 30, 2024

  1. update golang to 1.21
  2. update mockery to v2.40.3
  3. update go-lint to 1.59.1
  4. fix some lint
    • unused-parameter
    • SA1019: reflect.StringHeader has been deprecated
    • dot-imports
  5. remove depguard temporary

Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot requested a review from Renkai July 30, 2024 06:30
@CLAassistant
Copy link

CLAassistant commented Jul 30, 2024

CLA assistant check
All committers have signed the CLA.

@ti-chi-bot ti-chi-bot bot added the size/XL label Jul 30, 2024
Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot added size/XXL and removed size/XL labels Jul 30, 2024
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jul 30, 2024

/retest

Signed-off-by: lhy1024 <admin@liudos.us>

linters:
enable:
# Additionally enable some checkers
- asciicheck
- depguard
# - depguard
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I close it because I am not sure how tidb-dashboard will do about it.

@@ -29,7 +27,5 @@ func (km *KeyMap) SaveKeys(keys []string) {
}

func equal(keyA, keyB string) bool {
Copy link
Contributor Author

@lhy1024 lhy1024 Jul 30, 2024

Choose a reason for hiding this comment

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

replace it since reflect.StringHeader has been deprecated

pstring.Data = pbytes.Data
pstring.Len = pbytes.Len
return
func String(b []byte) string {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

pbytes.Len = pstring.Len
pbytes.Cap = pstring.Len
return
func Bytes(s string) []byte {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

Signed-off-by: lhy1024 <admin@liudos.us>
Copy link
Member

@nolouch nolouch left a comment

Choose a reason for hiding this comment

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

lgtm.
PTAL @baurine @Renkai

Copy link
Contributor

ti-chi-bot bot commented Jul 31, 2024

@nolouch: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

lgtm.
PTAL @baurine @Renkai

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added the lgtm label Aug 1, 2024
Copy link
Contributor

ti-chi-bot bot commented Aug 1, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baurine, nolouch

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

ti-chi-bot bot commented Aug 1, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-01 03:41:31.540262464 +0000 UTC m=+413607.820310526: ☑️ agreed by baurine.

@ti-chi-bot ti-chi-bot bot added the approved label Aug 1, 2024
@baurine
Copy link
Collaborator

baurine commented Aug 1, 2024

@lhy1024 please sign the CLA, thanks~

@baurine baurine mentioned this pull request Aug 1, 2024
@ti-chi-bot ti-chi-bot bot merged commit 0941ad4 into pingcap:master Aug 1, 2024
8 checks passed
@baurine
Copy link
Collaborator

baurine commented Aug 14, 2024

/cherry-pick release-8.3

baurine pushed a commit that referenced this pull request Aug 23, 2024
baurine added a commit that referenced this pull request Aug 26, 2024
* update go to 1.21  (#1709)

---------

Co-authored-by: lhy1024 <lhylhy1024@gmail.com>
@mornyx
Copy link
Collaborator

mornyx commented Dec 11, 2024

/cherry-pick release-7.5

@ti-chi-bot
Copy link
Member

@mornyx: new pull request created to branch release-7.5: #1759.

In response to this:

/cherry-pick release-7.5

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

ti-chi-bot pushed a commit to ti-chi-bot/tidb-dashboard that referenced this pull request Dec 11, 2024
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants