Skip to content

Refute_line is now throwing error about lines param being unset #91

@jasonkarns

Description

@jasonkarns

Error:

2025-12-03T21:18:01.4718360Z not ok 25 npm hook only warns if package is npm
2025-12-03T21:18:01.4726210Z # (from function `__refute_stream_line' in file test/../node_modules/bats-assert/src/refute_line.bash, line 196,
2025-12-03T21:18:01.4730170Z #  from function `refute_line' in file test/../node_modules/bats-assert/src/refute_line.bash, line 128,
2025-12-03T21:18:01.4738860Z #  in test file test/rehash.bats, line 107)
2025-12-03T21:18:01.4773180Z #   `refute_line -p "WARNING: Automatic rehashing"' failed
2025-12-03T21:18:01.4781100Z # /Users/runner/work/nodenv-package-rehash/nodenv-package-rehash/test/../node_modules/bats-assert/src/refute_line.bash: line 196: lines: parameter null or not set
2025-12-03T21:18:01.6237120Z not ok 26 npm hook doesn't warn when _uninstalling_ npm
2025-12-03T21:18:01.6290280Z # (from function `__refute_stream_line' in file test/../node_modules/bats-assert/src/refute_line.bash, line 196,
2025-12-03T21:18:01.6291200Z #  from function `refute_line' in file test/../node_modules/bats-assert/src/refute_line.bash, line 128,
2025-12-03T21:18:01.6292450Z #  in test file test/rehash.bats, line 118)
2025-12-03T21:18:01.6304410Z #   `refute_line -p "WARNING: Automatic rehashing"' failed
2025-12-03T21:18:01.6320130Z # /Users/runner/work/nodenv-package-rehash/nodenv-package-rehash/test/../node_modules/bats-assert/src/refute_line.bash: line 196: lines: parameter null or not set

Public github actions run demonstrating error: https://github.com/nodenv/nodenv-package-rehash/actions/runs/19944956605/job/57191969451

The bug is introduced sometime between 2.0 and 2.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions