Skip to content

Chore: bump github.com/spf13/pflag & lint fix#1446

Merged
kmesh-bot merged 2 commits intokmesh-net:mainfrom
brushax:bump-spf13-pflag
Aug 4, 2025
Merged

Chore: bump github.com/spf13/pflag & lint fix#1446
kmesh-bot merged 2 commits intokmesh-net:mainfrom
brushax:bump-spf13-pflag

Conversation

@brushax
Copy link
Copy Markdown
Contributor

@brushax brushax commented Jul 18, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

bump github.com/spf13/pflag to v1.0.7 and lint fix

Which issue(s) this PR fixes:
Fixes #1442

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Copilot AI review requested due to automatic review settings July 18, 2025 13:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR performs routine maintenance by updating the github.com/spf13/pflag dependency from v1.0.6 to v1.0.7 and addressing lint issues identified in the codebase.

  • Updates pflag dependency to latest patch version
  • Fixes Docker permission issues in the format script
  • Corrects markdown formatting in Chinese documentation

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated no comments.

File Description
go.mod Updates spf13/pflag dependency from v1.0.6 to v1.0.7
hack/format.sh Adds --user root flag to Docker command for permission fixes
docs/ebpf_unit_test_zh.md Fixes markdown code block syntax and formatting

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @Flying-Tom, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on maintenance and code quality. It updates a core Go dependency, github.com/spf13/pflag, to its latest minor version and includes several linting fixes to improve documentation formatting and ensure consistent code style.

Highlights

  • Dependency Upgrade: The github.com/spf13/pflag library has been updated from version v1.0.6 to v1.0.7, ensuring the project uses the latest stable release of this command-line flag parsing library.
  • Documentation Formatting Improvements: Minor formatting adjustments were applied to docs/ebpf_unit_test_zh.md, including adding sh for shell script syntax highlighting in a code block, correcting line spacing, and ensuring the file ends with a newline character.
  • Linting Script Enhancement: The hack/format.sh script was modified to run the markdownlint-cli2 command with the --user root flag within its Docker container, potentially resolving permissions issues during automated markdown linting.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the github.com/spf13/pflag dependency and fixes linting issues in a markdown document. A suggestion has been added to the hack/format.sh script to improve security by avoiding running the Docker container as the root user.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 36.92%. Comparing base (65d8180) to head (50c6298).
⚠️ Report is 8 commits behind head on main.
see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76e80d1...50c6298. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LiZhenCheng9527
Copy link
Copy Markdown
Contributor

Please fix conflicts

brushax added 2 commits August 2, 2025 06:52
Signed-off-by: Tom <yusencao@outlook.com>
Signed-off-by: Tom <yusencao@outlook.com>
@kmesh-bot kmesh-bot added size/XS and removed size/S labels Aug 2, 2025
@brushax
Copy link
Copy Markdown
Contributor Author

brushax commented Aug 2, 2025

Please fix conflicts

Done

Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

The pull request process is described here

Details 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

@kmesh-bot kmesh-bot merged commit fe60503 into kmesh-net:main Aug 4, 2025
12 checks passed
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.

5 participants