Skip to content

Commit

Permalink
gdrive: publish new stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Aug 24, 2022
1 parent 03f4e7d commit 0b01f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const Name = "gdrive"
const Version = "3.0.10"
const Version = "3.0.11"

const DefaultMaxFiles = 30
const DefaultMaxChanges = 100
Expand Down

7 comments on commit 0b01f6e

@jknechtel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, first, thanks for your efforts with keeping this tool alive!
I think the recent change in Google Auth still gives issues, although I understand this was tried to address in that fork.

When running ./gdrive about and connect to that local URL, I get the following error:

Authorization Error
Error 400: invalid_request
Missing required parameter: client_id

Any help on that would be much appreciated.

@msfjarvis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't provide help with using this repository, I don't maintain it as an open source project.

@jknechtel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, no worries. FYI, I've managed to get it working via another fork. See prasmussen#645

@msfjarvis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, no worries. FYI, I've managed to get it working via another fork. See prasmussen#645

The fork doesn't do anything useful other than removing the ability to not hard-code your app credentials in the gdrive binary. If you want to do that, building my repo with go build -ldflags "-X github.com/msfjarvis/gdrive/handlers_drive.ClientId=${CLIENT_ID} -X github.com/msfjarvis/gdrive/handlers_drive.ClientSecret=${CLIENT_SECRET}" will achieve the same thing.

@jknechtel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK. I guess many gdrive users might just be confused w/ the recent changes in Google auth, and that we need to setup credentials via Google console ourselves, etc. Hence the discussion in that thread/issue was helpful, for me, even if the fork apparently doesn't do much beyond.

@carstentrink
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msfjarvis Could you tell what should be location of the file oauth_client.json https://github.com/msfjarvis/gdrive/blob/main/handlers_drive.go#L22 on a linux system?

@msfjarvis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msfjarvis Could you tell what should be location of the file oauth_client.json main/handlers_drive.go#L22 on a linux system?

~/.config/gdrive/oauth_client.json

The contents should look like this

{
    "client_id": "00000000000-0x0x0x0x0x0x0x0.apps.googleusercontent.com",
    "client_secret": "hunter2"
}

Please sign in to comment.