Skip to content

Project creation fails if custom config folder does not exist, but fails late in the process #506

@wpyoga

Description

@wpyoga

When I created a new project and specified a non-existent config folder, the project creation process fails after I have created the project on Google:

$ gyb --action create-project --email my.email@gmail.com --config-folder ~/.config/gyb-nonexistent

Go to the following link in your browser:

	https://gyb-shortn.jaylee.us/123def

IMPORTANT: If you get a browser error that the site can't be reached AFTER you
click the Allow button, copy the URL from the browser where the error occurred
and paste that here instead.

Enter verification code or browser URL: Opening in existing browser session.
127.0.0.1 - - [04/Jul/2025 01:23:45] "GET /?state=SOME_RANDOM_STRING&code=SOME_RANDOM_STRING2&scope=https://www.googleapis.com/auth/cloud-platform HTTP/1.1" 200 91

The authentication flow has completed.
Creating project "Got Your Back Project"...
Checking project status...
 enabling API drive.googleapis.com...
 enabling API gmail.googleapis.com...
 enabling API groupsmigration.googleapis.com...
 enabling API iap.googleapis.com...
 enabling API vault.googleapis.com...
Creating Service Account
ERROR: [Errno 2] No such file or directory: '/home/william/.config/gyb-nonexistent/oauth2service.json'

What I expected:

  • Either inform me that the specified config folder does not exist and I need to create it myself, or
  • Create the folder for me automatically

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