Skip to content

Stuck in a loop #3184

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
grahamc opened this issue Apr 6, 2025 · 3 comments
Open

Stuck in a loop #3184

grahamc opened this issue Apr 6, 2025 · 3 comments

Comments

@grahamc
Copy link

grahamc commented Apr 6, 2025

I have a file called build-dry.sh, and it looks like this:

source common.sh

export NIX_TESTS_CA_BY_DEFAULT=1

cd .. && source build-dry.sh

When I run shellcheck on it, it blocks forever. I believe it is recursively checking itself? Is there a way to ask it to not follow that source?

@grahamc
Copy link
Author

grahamc commented Apr 6, 2025

...I worked around it like this:

# shellcheck disable=SC1091 source=/..
cd .. && source build-dry.sh

@koalaman
Copy link
Owner

koalaman commented Apr 6, 2025

I'm unable to reproduce this as described with shellcheck -x build-dry.sh. Which version are you using?

@grahamc
Copy link
Author

grahamc commented Apr 7, 2025

hmmm.... v0.10.0. It is on https://github.com/DeterminateSystems/nix-src/blob/852075ec9d44f41083b8a6c107cc69335864e223/tests/functional/ca/build-dry.sh this file specifically:

Grahams-MacBook-Pro:nix-src grahamc$ shellcheck tests/functional/ca/build-dry.sh
<stalls forever at 100% cpu>

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

No branches or pull requests

2 participants