Skip to content

SourceRepo 'toptal/gitignore' is no longer available. #58

Description

@matracey

It seems that something has happened to the toptal/gitignore repo, based on toptal/gitignore.io#669.

As a result, any attempt to use gig on a fresh install fails with Error: repo: failed to clone: authentication required (likely due to the repo being private).

$ gig gen node windows macos linux
Error: repo: failed to clone: authentication required
Usage:
  gig gen [template name] [flags]

Flags:
  -f, --file   if specified will create .gitignore file in the current working directory
  -h, --help   help for gen

Global Flags:
      --cache-path string    location where the content of github.com/toptal/gitignore
                             will be cached in (default "C:\\Users\\matracey\\AppData\\Local\\gig")
  -c, --commit-hash string   use templates from a specific commit hash of
                             github.com/toptal/gitignore

It seems like the suggested alternative is the github/gitignore project, which appears to be well maintained.

Might be worth exploring updating repo.go:11 to allow the source repo to be overridden as a global arg (maybe adding an init command to handle initialization / re-initialization of the local repo copy).

I will try to take this up and raise a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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