LeslieLeung / reaper

REpository ArchivER(REAPER) is a tool to archive repositories from any Git servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository config type default value seems not take effect

chengzhycn opened this issue · comments

This is my configuration yaml originally:

repository:
  - name: reaper
    url: github.com/leslieleung/reaper
    cron: "30 * * * *"
    storage:
      - localFile
    useCache: True
  - name: awesome-english-ebooks
    url: xxx
    cron: "30 * * * *"
    storage:
      - localFile
    useCache: True

storage:
  - name: localFile
    type: file
    path: /repo

When I started in deamon mode, it output 2 errors:

Unknown type
Unknown type
Starting daemon

I viewed the source codes, and find that it is because unknown type of repo. So I add type: "repo" to each repo's config, It works correctly now.

I think this is a serious problem that could let this program cant work. So I want to make sure that this is actually a bug or I missed something?

Sorry for the delay. I can confirm that this is a bug. Fixing it now.