From 2da3339e61f5a34e18367138fd93b929f5956892 Mon Sep 17 00:00:00 2001 From: Carson Reinke Date: Mon, 29 Jun 2020 14:48:53 -0400 Subject: [PATCH 1/4] Ignore files from 2020 when working locally --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d905d71..0637f03 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ gitmoo-goog.bz2 gitmoo-goog.zip # photos that were downloaded +202* 201* 199* From 7a4f6d2486c71d2f708f108cf3d1b4c0bedd893b Mon Sep 17 00:00:00 2001 From: Carson Reinke Date: Mon, 29 Jun 2020 14:49:13 -0400 Subject: [PATCH 2/4] Add note about building with Golang --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 138da1b..7e7b627 100644 --- a/README.md +++ b/README.md @@ -95,3 +95,9 @@ Logfile will be saved as `gitmoo.log`. Files are created as follows: `[folder][year][month][day]_[hash].json` and `.jpg`. The `json` file holds the metadata from `google-photos`. + +## Building: + +To build you may need to specify that module download mode is using a vendor folder. Failure to do this will mean that modified vendor files will not be used. + +`go build -mod vendor` \ No newline at end of file From 7d30e7fb13773fec574cf036ce5f2dd7623ac33c Mon Sep 17 00:00:00 2001 From: Carson Reinke Date: Mon, 29 Jun 2020 14:56:22 -0400 Subject: [PATCH 3/4] Add exit code when terminating with an error --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 0b69916..5824007 100644 --- a/main.go +++ b/main.go @@ -145,5 +145,6 @@ func main() { err := process(downloader) if err != nil { log.Println(err) + os.Exit(1) } } From 4c34135753ea68cfe1b6ef1bf34b67c13fa3915d Mon Sep 17 00:00:00 2001 From: Carson Reinke Date: Mon, 29 Jun 2020 15:02:28 -0400 Subject: [PATCH 4/4] Added details on how to run tests --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e7b627..4e82d4d 100644 --- a/README.md +++ b/README.md @@ -100,4 +100,8 @@ Files are created as follows: To build you may need to specify that module download mode is using a vendor folder. Failure to do this will mean that modified vendor files will not be used. -`go build -mod vendor` \ No newline at end of file +`go build -mod vendor` + +## Testing: + +`go test -mod vendor ./...` \ No newline at end of file