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

[feat] support upgdade curve #2674

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

Cyber-SiKu
Copy link
Contributor

What problem does this PR solve?

Issue Number: #xxx

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@montaguelhz
Copy link
Contributor

There is a typo, upgrade instead of upgeade.

Copy link
Contributor

@montaguelhz montaguelhz left a comment

Choose a reason for hiding this comment

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

good job

upgradeCmd := &UpgradeCommand{
FinalCurveCmd: basecmd.FinalCurveCmd{
Use: "upgrade",
Short: "upgreade the curve to newst version",
Copy link
Contributor

Choose a reason for hiding this comment

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

upgrade the curve to latest version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

upgrade the curve to latest version

fix

defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("get curve newst version error: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

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

fix

@Cyber-SiKu Cyber-SiKu changed the title [feat] support upgeade curve [feat] support upgdade curve Aug 7, 2023
@Cyber-SiKu
Copy link
Contributor Author

cicheck

Signed-off-by: Cyber-SiKu <Cyber-SiKu@outlook.com>
@montaguelhz
Copy link
Contributor

Very glad to witness a milestone of the curve-cli.

@Cyber-SiKu
Copy link
Contributor Author

cicheck

return err
}

if info.Mode().Perm()&(1<<(uint(7))) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

code format, add some space~

Copy link
Contributor

@Xinlong-Chen Xinlong-Chen left a comment

Choose a reason for hiding this comment

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

lgtm

@Xinlong-Chen
Copy link
Contributor

cicheck

3 similar comments
@Cyber-SiKu
Copy link
Contributor Author

cicheck

@Cyber-SiKu
Copy link
Contributor Author

cicheck

@Cyber-SiKu
Copy link
Contributor Author

cicheck

@Cyber-SiKu Cyber-SiKu merged commit 6f5c85b into opencurve:master Aug 15, 2023
3 checks passed
@Cyber-SiKu Cyber-SiKu deleted the feat/upgrade_tools_v2 branch August 15, 2023 11:47
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