Skip to content

Index out of bounds error in shards outdated #325

@straight-shoota

Description

@straight-shoota

Running bin/shards outdated on shards repo (master at 38b3d21) raises Index out of bounds exception:

$ bin/shards outdated
Resolving dependencies
Fetching https://github.com/crystal-lang/crystal-molinillo.git
Fetching https://github.com/ysbaddaden/minitest.cr.git
Unhandled exception: Index out of bounds (IndexError)
  from /usr/share/crystal/src/indexable.cr:0:13 in 'first'
  from src/commands/outdated.cr:47:9 in 'analyze'
  from src/commands/outdated.cr:20:35 in 'run'
  from src/commands/command.cr:27:7 in 'run:prereleases'
  from src/cli.cr:61:11 in '->'
  from /usr/share/crystal/src/option_parser.cr:255:3 in 'parse'
  from /usr/share/crystal/src/option_parser.cr:185:5 in 'parse'
  from src/cli.cr:58:5 in 'run'
  from src/cli.cr:108:3 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:97:5 in 'main_user_code'
  from /usr/share/crystal/src/crystal/main.cr:86:7 in 'main'
  from /usr/share/crystal/src/crystal/main.cr:106:3 in 'main'
  from __libc_start_main
  from _start
  from ???
$ bin/shards --version
Shards 0.9.0 [38b3d21] (2020-02-13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions