Skip to content

fallback to latest available db if it's not updated for more than 5 days #502

@kranurag7

Description

@kranurag7

What happened:

 $ xeol nats:latest
 ✔ EOL DB                          [no update available]
1 error occurred:
                        * db could not be loaded: the eol database was built 5 days ago (max allowed age is 5 days)

What you expected to happen:
In CI or testing if I use this and if I don't have the data available to last 5 days then it fails with exit 1.
We should have an option to fall back to the last available database in this case if it happens.

How to reproduce it (as minimally and precisely as possible):
don't update the database for 5 days and do a xeol <image> invocation.

Anything else we need to know?:
n/a

Environment:

  • Output of xeol version: 0.10.4
  • OS (e.g: cat /etc/os-release or similar): wolfi

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions