Skip to content

Is there a way to run goreleaser without git repo? #270

Closed

Description

@damnever

Error message:

failed reading repo from git: exit status 1:

I cannot find out solution from README.

Activity

  1. caarlos0 commented on Jul 1, 2017

    @caarlos0
    Member

    @damnever --skip-validate should do it...

  2. damnever commented on Jul 1, 2017

    @damnever
    Author

    Run on macOS

    ➜  goreleaser --skip-validate --debug
       • running goreleaser 0.21.3
       • SETTING DEFAULTS
    failed reading repo from git: exit status 1:
    
  3. caarlos0 commented on Jul 1, 2017

    @caarlos0
    Member

    hmm, so you'll need to fill up all the defaults that are provided via git.

    try goreleaser init and fill things up according to the readme...

    but anyway, goreleaser was not made to be used without a git repo... so I don't know if it will work as expected..

  4. damnever commented on Jul 3, 2017

    @damnever
    Author

    I make it worked, but goreleaser init also failed reading repo from git, is there any plan to make it work without git repo?

  5. caarlos0 commented on Jul 3, 2017

    @caarlos0
    Member

    Not right now, but, I'm curious, what is the use case? Are you using another SCM?

  6. damnever commented on Jul 3, 2017

    @damnever
    Author

    If I have a project in development and I do not have a git repo currently, goreleaser won't work.

  7. caarlos0 commented on Jul 4, 2017

    @caarlos0
    Member

    Hmm, got it.

    I usually create a repo right away...

    Anyway, the init command should probably ignore this kind of errors and just leave the field empty I guess...

  8. added this to the milestone on Sep 2, 2017
  9. stale commented on Dec 6, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  10. caarlos0 commented on Dec 13, 2017

    @caarlos0
    Member

    not stale

  11. caarlos0 commented on Feb 25, 2018

    @caarlos0
    Member

    release --snapshot still needs git, will improve this as well

  12. github-actions commented on Nov 19, 2020

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked as resolved and limited conversation to collaborators on Nov 19, 2020
  14. modified the milestones: , v1.0.0 on Jan 10, 2022
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions