Skip to content

PackageWizard() breaks if git user credentials are not set globally #55

@szteven

Description

@szteven

Fresh Linux install, with git user.email and user.name not set globally (yet). This breaks PackageWizard() as below:

gap> PackageWizard();
Welcome to the GAP PackageMaker Wizard.
I will now guide you step-by-step through the package
creation process by asking you some questions.

What is the name of the package? foobarpackage
Enter a short (one sentence) description of your package: A package for Foos and Bars.
Shall I prepare your new package for GitHub? [Y/n] Y
Do you want to use GitHubPagesForGAP? [Y/n] Y
Do you want to use GitHubActions and Codecov? [Y/n] Y
I need to know the URL of the GitHub repository.
It is of the form https://github/USER/REPOS.
What is USER (typically your GitHub username)? szteven
What is REPOS, the repository name? [foobarpackage]
 (1)   No
 (2)   Yes, written in C
 (3)   Yes, written in C++
Shall your package provide a GAP kernel extension? [1]

Next I will ask you about the package authors and maintainers.

Last name? Foo
First name(s)? Bar
Is this one of the package authors? [Y/n] Y
Is this a package maintainer? [Y/n] Y
Email? foobar@example.com
WWWHome?
Institution?
Place?
PostalAddress?
Add another person? [y/N] N
Creating the git repository...
Initialized empty Git repository in /home/istvan/.gap/pkg/foobarpackage/.git/
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 email address (got 'istvan@fedora.(none)')
Error, Failed to commit files to git repository at /home/istvan/.gap/pkg/PackageMaker/gap/PackageMaker.gi:355 called from
RunGit( [ "commit", "-m", "initial import" ], "Failed to commit files to git repository" ); at /home/istvan/.gap/pkg/PackageMaker/gap/PackageMaker.gi:366 called from
CreateGitRepository( dir, github ); at /home/istvan/.gap/pkg/PackageMaker/gap/PackageMaker.gi:737 called from
<function "PackageWizard">( <arguments> )
 called from read-eval loop at *stdin*:3
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>

Metadata

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