Skip to content

Fail to created app due to GPG sign #1700

Open
@ngdangtu-vn

Description

This is an error when I created example app in an empty directory:

§ encore app create
Log in / Sign up for a free Encore Cloud account to enable automated cloud deployments? (Y/n): n
  ✔ Language: Go           
  ✔ Template: Hello World  
  ✔ App Name: d            
                           

Downloaded template hello-world.
error: create initial commit repository: error: gpg failed to sign the data
fatal: failed to write commit object
 (exit status 128)

And this is another error when I created example app in a predefined git repo (with proper GPG sign) directory:

§ encore app create
Log in / Sign up for a free Encore Cloud account to enable automated cloud deployments? (Y/n): n
  ✔ Language: Go            
  ✔ Template: Hello World   
  ✔ App Name: bla-chan  
                            

Downloaded template hello-world.
error: create initial commit repository: Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect e-mail address (got 'dangtu@blabla.(none)')
 (exit status 128)

I think this error happens because I have GPG sign as global in Git but I don't set email for it. The reason I don't set a global email because I have lot projects use different GPG sign (due to client requests). And I don't want to set a global email account. Do we have secret flag that let me create example app without using git? I didn't find anything userful in encore app create -h


update

I tried to temporary set the global email and name but I still got this error:

error: create initial commit repository: error: gpg failed to sign the data
fatal: failed to write commit object
 (exit status 128)

Does anyone have the same problem in linux before?


temporary solution:

go to https://github.com/encoredev/examples and download the example you wish to use.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions