Skip to content

Command fails on CODEOWNERS file with fewer than 100 lines #19

@khamusa

Description

@khamusa

If the CODEOWNERS file contains up to 99 lines, the following error occurs when running bundle exec code_owners -u:

bundler: failed to load command: code_owners (.../vendor/nix/gems/ruby/3.2.0/bin/code_owners)
.../vendor/nix/gems/ruby/3.2.0/gems/code_owners-2.0.1/lib/code_owners.rb:41:in `fetch': index 99 outside of array bounds: -99...99 (IndexError)

However, if I add one extra line, the error does not appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions