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* diff --git a/README.md b/README.md index 02aea29..8ea895d 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,16 @@ 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` + +## Testing: + +`go test -mod vendor ./...` + ## Docker (Linux only) You can run gitmoo-goog in Docker. At the moment you have to build the image yourself. After cloning the repo run: diff --git a/main.go b/main.go index c69491f..eeb281e 100644 --- a/main.go +++ b/main.go @@ -147,5 +147,6 @@ func main() { err := process(downloader) if err != nil { log.Println(err) + os.Exit(1) } }