substratusai / runbooks

Finetune LLMs on K8s by using Runbooks
https://www.substratus.ai
Other
168 stars 14 forks source link

`sub get` crashes when 0 resources? #250

Closed samos123 closed 11 months ago

samos123 commented 12 months ago
sub get                                                                                                                    

  Total: 0                                                     

  Press "q" to quit                                            

Caught panic:                                                                                                                                                                                 
runtime error: index out of range [-1]                                                                                         

Restoring terminal...                                                                                                          

goroutine 1 [running]:                                                                                                         
runtime/debug.Stack()                                                                                                          
        /opt/hostedtoolcache/go/1.21.1/x64/src/runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()                                                                                                     
        /opt/hostedtoolcache/go/1.21.1/x64/src/runtime/debug/stack.go:16 +0x13
github.com/charmbracelet/bubbletea.(*Program).Run.func1()                                                                      
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:440 +0x91
panic({0x1909660?, 0xc000046168?})                      
        /opt/hostedtoolcache/go/1.21.1/x64/src/runtime/panic.go:920 +0x270          
github.com/substratusai/substratus/internal/tui.GetModel.View({{0x1c8f710, 0x29e6880}, {0x0, 0x0}, {0x1a176b4, 0x7}, {0x1c82770
, 0xc000011620}, {0x0, 0x0}, ...})            
nstogner commented 11 months ago

This is actually due to a versioning requirement for Models and Datasets