mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-25 12:05:10 +08:00
Rephrase: *Shellcheck* can't follow non-constant source
The message "Can't follow non-constant source. Use a directive to specify location." set me off on the wrong foot. At first, I thought it meant "In bash, you can't source a script specified by a variable." It was only after reading the wiki page for this message https://github.com/koalaman/shellcheck/wiki/SC1090 that I understood that the problem is that *shellcheck* can't check the sourced file. So I would suggest to rephrase this message so that it is more clear that the problem is in the checking, not in the running of the script.
This commit is contained in:
@@ -2129,7 +2129,7 @@ readSource t@(T_Redirecting _ _ (T_SimpleCommand cmdId _ (cmd:file':rest'))) = d
|
||||
case literalFile of
|
||||
Nothing -> do
|
||||
parseNoteAtId (getId file) WarningC 1090
|
||||
"Can't follow non-constant source. Use a directive to specify location."
|
||||
"Shellcheck can't follow non-constant source. Use a directive to specify location."
|
||||
return t
|
||||
Just filename -> do
|
||||
proceed <- shouldFollow filename
|
||||
|
Reference in New Issue
Block a user