Skip to content

bash format added in make format #1329

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

Merged
merged 4 commits into from
May 6, 2025
Merged

Conversation

yp969803
Copy link
Contributor

What type of PR is this?

/kind enhancement

What this PR does / why we need it:
bash format added in make format

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

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

@kmesh-bot kmesh-bot added the kind/enhancement New feature or request label Apr 23, 2025
@yp969803
Copy link
Contributor Author

@hzxuzhonghu waiting for review !!

@yp969803
Copy link
Contributor Author

/retest

Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.86%. Comparing base (a1e0bd3) to head (36330a2).
Report is 16 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 1844e9e...36330a2. Read the comment docs.

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

@hzxuzhonghu
Copy link
Member

Do you use https://github.com/mvdan/sh?

@yp969803
Copy link
Contributor Author

yes

@yp969803
Copy link
Contributor Author

shfmt package is not available in yum , I think I have to use go

@yp969803
Copy link
Contributor Author

@hzxuzhonghu can u see now

hack/format.sh Outdated
install_tool clang-format
fi
function install_shell_format() {
go install mvdan.cc/sh/v3/cmd/shfmt@latest
Copy link
Member

Choose a reason for hiding this comment

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

we should better install a stable version, rather than latest

Copy link
Contributor Author

Choose a reason for hiding this comment

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

getting error if i remove latest tag

no required module provides package mvdan.cc/sh/v3/cmd/shfmt; to add it:
        go get mvdan.cc/sh/v3/cmd/shfmt

Copy link
Contributor Author

@yp969803 yp969803 Apr 24, 2025

Choose a reason for hiding this comment

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

docs also recommends to download with latest tag https://github.com/mvdan/sh

Copy link
Member

Choose a reason for hiding this comment

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

I am concerned latest us always using the up to date version,actually a develope branch of the master branch

Now you can try v3.11.0

@kmesh-bot
Copy link
Collaborator

Adding label do-not-merge/contains-merge-commits because PR contains merge commits, which are not allowed in this repository.
Use git rebase to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.

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.

@yp969803
Copy link
Contributor Author

@hzxuzhonghu done the changes

Copy link
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

@yp969803
Copy link
Contributor Author

yp969803 commented May 1, 2025

@hzxuzhonghu waiting for merge !!

@hzxuzhonghu
Copy link
Member

/approve

sorry missed this label

@kmesh-bot
Copy link
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

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 7c67808 into kmesh-net:main May 6, 2025
11 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.

Add format bash files in make format
3 participants