common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
956 stars 90 forks source link

Panic interface {} is nil, not string #608

Closed universam1 closed 1 month ago

universam1 commented 4 months ago

Erroring out, unaware of changes:

panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/common-fate/granted/pkg/cfaws.(*Profiles).GetFrecentProfiles(0xc000255980)
    /Users/runner/work/granted-cli-build/granted-cli-build/granted/pkg/cfaws/frecent_profiles.go:59 +0x5d0
github.com/common-fate/granted/pkg/assume.AssumeCommand(0xc0000a3340)
    /Users/runner/work/granted-cli-build/granted-cli-build/granted/pkg/assume/assume.go:216 +0x64c
github.com/urfave/cli/v2.(*Command).Run(0xc0001c3180, 0xc0000a3340, {0xc000034220, 0x1, 0x1})
    /Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.24.1/command.go:271 +0xa42
github.com/urfave/cli/v2.(*App).RunContext(0xc000188960, {0xd18690?, 0xc0000420e0}, {0xc000034220, 0x1, 0x1})
    /Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.24.1/app.go:333 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
    /Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.24.1/app.go:310
main.main()
    /Users/runner/work/granted-cli-build/granted-cli-build/granted/cmd/granted/main.go:50 +0x285

Adding more context once I discover.