-
Notifications
You must be signed in to change notification settings - Fork 172
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
Make go-xcat pass ShellCheck #6367
base: master
Are you sure you want to change the base?
Conversation
This will need to be rebased on top of master, so I'm marking it WIP till I get a chance to rebase. |
a2469aa
to
628007a
Compare
Signed-off-by: Samveen <samveen@samveen.in>
628007a
to
c4582a3
Compare
The rebase and additional checks are run and done. I've utilized the following commandline to check and test:
Fixes for the checks SC2207 and SC2317 will required a drastic rewrite of go-xcat, for which I do not have the bandwidth right now. Maybe after six months. In the meantime, this is ready for testing and merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this breaks go-xcat because of additional "
chars.
current code:
[root@vm-test ~]# ./go-xcat install
Operating system: linux
Architecture: x86_64
Linux Distribution: almalinux
Version: 9.4
go-xcat Version: 1.0.53
Reading repositories ...... done
xCAT Core Packages
==================
Package Name Installed In Repository
------------ --------- -------------
perl-xCAT (not installed) 2.16.5-snap202303030907
xCAT (not installed) 2.16.5-snap202303030907
[...]
with this PR:
[root@vm-test ~]# ./go-xcat-new install
Operating system: linux
Architecture: x86_64
Linux Distribution: "almalinux"
Version: "9.4"
go-xcat-new: "almalinux": unsupported Linux distro
go-xcat-new Version: 1.0.53
Reading repositories ...... failed
Cache was expired
0 files removed
go-xcat-new: "almalinux""9: unsupported Linux distro
Cache was expired
0 files removed
Boo-boo
=======
Something went wrong. :(
Please check log file `/tmp/go-xcat.log' for more details.
I'll check on this. PLease give me a couple of days. |
The PR is to partially fix issue #4610
The modification include
ShellChecks on go-xcat
The UT result