You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getTaskPath() in signals_test.go returns bare filename instead of full path #2970
In signals_test.go, the getTaskPath() helper function has a subtle but impactful bug: it calls os.Stat("./bin/task") and then returns info.Name(). The FileInfo.Name() method returns only the base filename (i.e. "task"), not the path that was passed to os.Stat.
Name returns the name of the file corresponding to this entry, for a regular file, this is the base name of the file.
So info.Name() returns "task" — not"./bin/task".
Impact
When the signal tests call getTaskPath() and ./bin/task exists, the function returns "task" (bare filename). This path is then passed to exec.Command(). On systems where task is also installed globally (in $PATH), the tests silently run against the system-installed binary instead of the locally-built one from ./bin/task. This can mask failures in locally-built binaries and cause signal tests to pass even when the local build is broken.
Expected Behavior
getTaskPath() should return "./bin/task" when the binary exists at that path.
changed the title [-]bug: getTaskPath() in signals_test.go returns bare filename instead of full path[/-][+]getTaskPath() in signals_test.go returns bare filename instead of full path[/+]on Aug 13, 2026
Activity
[-]bug: getTaskPath() in signals_test.go returns bare filename instead of full path[/-][+]getTaskPath() in signals_test.go returns bare filename instead of full path[/+]