author field is required error on recipe new command #580

Open
opened 2024-03-07 16:37:35 +00:00 by p4u1 · 1 comment
Member

When you run recipe new, the command creates a new git repository and writes a first commit. For git to write a commit a git user and email needs to be specified. This information is taken from the users gitconfig. When a user did not configure a global git user and git email they get the following error message:

FATA[0000] author field is required

I think we have several options:

  1. Remove the commit feature and leave comiting to the user
  2. Improve the error message (it should be clear, that the error comes from git commit)
  3. Add flags to set the git user and email
When you run `recipe new`, the command creates a new git repository and writes a first commit. For git to write a commit a git user and email needs to be specified. This information is taken from the users `gitconfig`. When a user did not configure a global git user and git email they get the following error message: ``` FATA[0000] author field is required ``` I think we have several options: 1. Remove the commit feature and leave comiting to the user 2. Improve the error message (it should be clear, that the error comes from git commit) 3. Add flags to set the git user and email
p4u1 added the
abra
label 2024-03-07 16:37:35 +00:00
Owner

While I'm fine with merging coop-cloud/abra#405 I do think I prefer the 2. option with a clear error message. We've slipped into implementing stuff that other tools can do better in the past. Not a good look. Thanks for pushing this along.

While I'm fine with merging https://git.coopcloud.tech/coop-cloud/abra/pulls/405 I do think I prefer the 2. option with a clear error message. We've slipped into implementing stuff that other tools can do better in the past. Not a good look. Thanks for pushing this along.
decentral1se added the
bug
label 2024-03-27 06:16:01 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#580
No description provided.