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 check is failing #442

Open
ixti opened this issue Feb 20, 2023 · 2 comments · May be fixed by #443
Open

make check is failing #442

ixti opened this issue Feb 20, 2023 · 2 comments · May be fixed by #443
Labels

Comments

@ixti
Copy link

ixti commented Feb 20, 2023

Description

Running make check fails

Steps To Reproduce

Steps to reproduce the bug:

  1. clone the repo
  2. run make check

Expected Behavior

All checks should pass

Actual Behavior

Fails with lots of shellcheck errors

@ixti ixti added the bug label Feb 20, 2023
@postmodern
Copy link
Owner

I disabled many of the erroneous ShellCheck rules that were giving false positives, and fixed a few legitimate issues as well. Feel free to help out with the remaining linting errors.

In share/ruby-install/checksums.sh line 33:
	local output="$(grep "  $file" "$checksums")"
              ^----^ SC2155: Declare and assign separately to avoid masking return values.


In share/ruby-install/checksums.sh line 58:
	local output="$($program "$file")"
              ^----^ SC2155: Declare and assign separately to avoid masking return values.


In share/ruby-install/checksums.sh line 74:
	local actual_checksum="$(compute_checksum "$algorithm" "$file")"
              ^-------------^ SC2155: Declare and assign separately to avoid masking return values.


In share/ruby-install/functions.sh line 22:
	ruby_dependencies=($(fetch "$ruby/$file" "$package_manager" || return $?))
                           ^-- SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).


In share/ruby-install/package_manager.sh line 32:
			local brew_owner="$(/usr/bin/stat -f %Su "$(command -v brew)")"
                              ^--------^ SC2155: Declare and assign separately to avoid masking return values.


In share/ruby-install/package_manager.sh line 43:
			local missing_pkgs=($(pacman -T "$@"))
                                            ^---------------^ SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).


In share/ruby-install/ruby-install.sh line 275:
	local fully_qualified_version="$(lookup_ruby_version "$ruby" "$ruby_version")"
              ^---------------------^ SC2155: Declare and assign separately to avoid masking return values.

For more information:
  https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...
  https://www.shellcheck.net/wiki/SC2207 -- Prefer mapfile or read -a to spli...

@postmodern postmodern added linting Linting issues help wanted and removed bug labels Feb 20, 2023
@ixti ixti linked a pull request Feb 21, 2023 that will close this issue
@ixti
Copy link
Author

ixti commented Feb 21, 2023

Opened a PR with fixes to the above linting errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants