From 81b81076fba49089e25bdd3456ed9175240a9a43 Mon Sep 17 00:00:00 2001 From: pacoorozco Date: Fri, 20 Oct 2023 18:27:17 +0200 Subject: [PATCH 1/3] Bump google.golang.org/api to 0.148.0 Signed-off-by: pacoorozco --- go.mod | 2 +- go.sum | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ee45003..67f04ed 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( golang.org/x/oauth2 v0.13.0 golang.org/x/sync v0.4.0 golang.org/x/term v0.13.0 - google.golang.org/api v0.147.0 + google.golang.org/api v0.148.0 ) require ( diff --git a/go.sum b/go.sum index 269c42e..42c9e5a 100644 --- a/go.sum +++ b/go.sum @@ -515,6 +515,7 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.147.0 h1:Can3FaQo9LlVqxJCodNmeZW/ib3/qKAY3rFeXiHo5gc= google.golang.org/api v0.147.0/go.mod h1:pQ/9j83DcmPd/5C9e2nFOdjjNkDZ1G+zkbK2uvdkJMs= +google.golang.org/api v0.148.0/go.mod h1:8/TBgwaKjfqTdacOJrOv2+2Q6fBDU1uHKK06oGSkxzU= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= From 52b214a034af36f0ff77a66c44f98265e1b008d4 Mon Sep 17 00:00:00 2001 From: pacoorozco Date: Fri, 20 Oct 2023 18:31:06 +0200 Subject: [PATCH 2/3] Add support for Go 1.21 (remove 1.19) Signed-off-by: pacoorozco --- .github/workflows/create-release.yml | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 2 +- Makefile | 2 +- go.mod | 2 +- go.sum | 5 ++--- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 2f40403..beb6e83 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 41170cf..39eb79b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.52.2 + version: v1.55.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1dba461..2d2d66f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: test-matrix: strategy: matrix: - go-version: ['1.19', '1.20'] + go-version: ['1.20', '1.21'] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/Makefile b/Makefile index 2fd00b9..286972b 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ TMP_DIR ?= .tmp COVERAGE_FILE := $(TMP_DIR)/coverage.txt COVERAGE_HTML_FILE := $(TMP_DIR)/coverage.html GOLANGCI := $(TMP_DIR)/golangci-lint -GOLANGCI_VERSION := 1.52.2 +GOLANGCI_VERSION := 1.55.5 # set how to open files based on OS and ARCH. UNAME_OS := $(shell uname -s) diff --git a/go.mod b/go.mod index 67f04ed..a66abc1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gphotosuploader/gphotos-uploader-cli -go 1.19 +go 1.20 require ( github.com/99designs/keyring v1.2.2 diff --git a/go.sum b/go.sum index 42c9e5a..4183fb8 100644 --- a/go.sum +++ b/go.sum @@ -135,7 +135,7 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -513,8 +513,7 @@ google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz513 google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.147.0 h1:Can3FaQo9LlVqxJCodNmeZW/ib3/qKAY3rFeXiHo5gc= -google.golang.org/api v0.147.0/go.mod h1:pQ/9j83DcmPd/5C9e2nFOdjjNkDZ1G+zkbK2uvdkJMs= +google.golang.org/api v0.148.0 h1:HBq4TZlN4/1pNcu0geJZ/Q50vIwIXT532UIMYoo0vOs= google.golang.org/api v0.148.0/go.mod h1:8/TBgwaKjfqTdacOJrOv2+2Q6fBDU1uHKK06oGSkxzU= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= From 5800f8d5a807fd8a38edd743400798ae2305fa72 Mon Sep 17 00:00:00 2001 From: pacoorozco Date: Fri, 20 Oct 2023 18:31:26 +0200 Subject: [PATCH 3/3] Update CHANGELOG for v3.5.2 Signed-off-by: pacoorozco --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b579ac..d4b9f3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/). +## 3.5.2 +### Added +- Support for the latest published Go version (1.21). This project will maintain compatibility with the latest two major versions published. +- Client cache for albums to reduce the number of requests to Google Photos API + + +### Changed +- Bump `github.com/sirupsen/logrus` from 1.8.1 to 1.9.3 +- Bump `github.com/spf13/afero` from 1.8.2 to 1.10.0 +- Bump `golang.org/x/oauth2` from 0.12.0 to 0.13.0 +- Bump `golang.org/x/sync` from 0.3.0 to 0.4.0 +- Bump `golang.org/x/term` from 0.10.0 to 0.13.0 +- Bump `github.com/99designs/keyring` from 1.2.1 to 1.2.2 +- Bump `github.com/gphotosuploader/google-photos-api-client-go/v2` from 2.4.0 to 2.4.2 +- Bump `github.com/schollz/progressbar/v3` from 3.8.6 to 3.13.1 +- Bump `github.com/spf13/cobra` from 1.4.0 to 1.7.0 +- Bump `golang.org/x/oauth2` from v0.0.0-20220309155454-6242fa91716a to 0.13.0 +- Bump `golang.org/x/sync` from v0.0.0-20210220032951-036812b2e83c to 0.4.0 +- Bump `golang.org/x/term` v0.0.0-20210927222741-03fcf44c2211 to 0.13.0 +- Bump `google.golang.org/api` from v0.74.0 to 0.148.0 + ## 3.5.1 ### Added - Support for the latest published Go version (1.20). This project will maintain compatibility with the latest two major versions published.