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

Make go-xcat pass ShellCheck #6367

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

samveen
Copy link
Member

@samveen samveen commented Jul 5, 2019

The PR is to partially fix issue #4610

The modification include

ShellChecks on go-xcat

The UT result

[samveen@x230 tools]$ shellcheck go-xcat && echo complete
complete

@besawn besawn self-requested a review August 29, 2019 18:42
@besawn besawn self-assigned this Aug 29, 2019
@Obihoernchen Obihoernchen added this to the 2.17 milestone Jul 12, 2024
@CLAassistant
Copy link

CLAassistant commented Jul 31, 2024

CLA assistant check
All committers have signed the CLA.

@samveen samveen changed the title make go-xcat pass ShellCheck [WIP]make go-xcat pass ShellCheck Aug 1, 2024
@samveen
Copy link
Member Author

samveen commented Aug 1, 2024

This will need to be rebased on top of master, so I'm marking it WIP till I get a chance to rebase.

@samveen
Copy link
Member Author

samveen commented Aug 19, 2024

The rebase and additional checks are run and done.

I've utilized the following commandline to check and test:

$ shellcheck -e SC2207,SC2317 go-xcat

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.

@samveen samveen changed the title [WIP]make go-xcat pass ShellCheck Make go-xcat pass ShellCheck Aug 19, 2024
Copy link
Member

@Obihoernchen Obihoernchen left a 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.

@samveen
Copy link
Member Author

samveen commented Sep 11, 2024

I'll check on this. PLease give me a couple of days.

@Obihoernchen Obihoernchen modified the milestones: 2.17, 2.17.1 Nov 7, 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.

4 participants