Skip to content

Unable to load templates from GitHub #9

@makp0

Description

@makp0

Hey @janniks, amazing work on this cli tool! Thank you very much.

Recently, I've started having the following error when fetching templates from toptal/gitignore (404 now)

Error:
❯ ./git-ignore Loading ignore templates from GitHub... thread 'main' panicked at ' ! Unable to load templates from GitHub: SerdeJsonError(Error("invalid type: map, expected a sequence", line: 1, column: 0))', src/main.rs:194:33 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

I've found the original toptal/gitignore code and put it into gitignore-cli/toptal_gitignore . You could fork it yourself and maintain the templates. But at some point it may stop aligning with Toptal's API used, at some point may also have to fork and deploy the API

TLDR: fork using forked templates repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions