Skip to content

refactor(shellcheck): fix all remaining warnings/errors #1019

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

Open
wants to merge 6 commits into
base: branch-25.08
Choose a base branch
from

Conversation

gforsyth
Copy link
Contributor

Finishes up the shellcheck work tracked in rapidsai/build-planning#135

@gforsyth gforsyth requested a review from a team as a code owner June 12, 2025 18:05
@gforsyth gforsyth added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jun 12, 2025
@gforsyth gforsyth requested review from a team as code owners June 12, 2025 18:05
@gforsyth gforsyth added the improvement Improves an existing functionality label Jun 12, 2025
@gforsyth gforsyth requested a review from bdice June 12, 2025 18:05
@gforsyth gforsyth added the non-breaking Introduces a non-breaking change label Jun 12, 2025
@gforsyth gforsyth requested review from jameslamb and removed request for bdice June 13, 2025 19:03
@gforsyth
Copy link
Contributor Author

@jameslamb one more for you here

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

I left a couple suggestions... leaving a blocking review because I think one is a correctness problem. The others are just small suggestions for improvement.

@ me whenever you want another review.

build.sh Outdated
if [[ ${CMAKE_TARGET} != "" ]]; then
echo "-- Compiling targets: ${CMAKE_TARGET}, verbose=${VERBOSE_FLAG}"
if [[ ${CMAKE_TARGET[*]} != "" ]]; then
echo "-- Compiling targets: ${CMAKE_TARGET[*]}, verbose=${VERBOSE_FLAG}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "-- Compiling targets: ${CMAKE_TARGET[*]}, verbose=${VERBOSE_FLAG}"
echo "-- Compiling targets: ${CMAKE_TARGET[@]}, verbose=${VERBOSE_FLAG}"

Similar to my comment above... I think here you want the values, not the keys (because there are no keys).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think this is another weird implicit vs. explicit array concatenation thing -- shellcheck doesn't like it when strings and arrays are mixed: https://github.com/koalaman/shellcheck/wiki/SC2145

Copy link
Contributor Author

Choose a reason for hiding this comment

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

huh, well, I'm definitely wrong here because that didn't output any values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, or maybe CMAKE_TARGET was just empty? I've pushed up a different way of spelling this, in any case, but I think this should work.

 > CMAKE_TARGET=('one' 'two')
 > echo "-- Compiling targets: ${CMAKE_TARGET[*]}"
-- Compiling targets: one two

Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense (if it's possible) to exclude this file from cpp-ownership?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants