Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Go compilation from source fails #658

Open
Mmisiek opened this issue Nov 8, 2022 · 4 comments
Open

Go compilation from source fails #658

Mmisiek opened this issue Nov 8, 2022 · 4 comments

Comments

@Mmisiek
Copy link

Mmisiek commented Nov 8, 2022

michal@Michals-MacBook-Pro~/Downloads/gdrive-master $ go get github.com/prasmussen/gdrive
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
@markusgerber76
Copy link

See another fork. See #645

@Msameim181
Copy link

You can use this Repository. Don't forget to hit Star.

@Mmisiek
Copy link
Author

Mmisiek commented Nov 12, 2022

See another fork. See #645

Not sure what to do with that fork ? I am trying to compile from source on Mac. The pre-compiled packages fail to connect to Google Drive.

@markusgerber76
Copy link

For macOS (Intel)

git clone --depth=1 https://github.com/carstentrink/gdrive
cd gdrive

Just edit the clientId and clientSecret in the file handlers_drive.go

export GOOS=darwin
export GOARCH=amd64
export BIN_NAME="gdrive_macos"
export BIN_PATH="./bin"
go build -ldflags '-w -s' -o ${BIN_PATH}/${BIN_NAME}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants