From 607d27eb8daecc01b93b29aa18ebc523da3504b3 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Wed, 10 Apr 2024 09:08:52 +0200 Subject: [PATCH] [chore] Update dependency to github.com/google/go-github/v61 (#2863) Signed-off-by: Mikel Olasagasti Uranga --- go.mod | 3 +-- go.sum | 10 ++-------- helpers/postrel/main.go | 5 ++--- internal/cache/ghssh/cache.go | 2 +- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 9c0f55f7c5..0d1b2bdcb5 100644 --- a/go.mod +++ b/go.mod @@ -15,8 +15,7 @@ require ( github.com/godbus/dbus/v5 v5.1.0 github.com/gokyle/twofactor v1.0.1 github.com/google/go-cmp v0.6.0 - github.com/google/go-github v17.0.0+incompatible - github.com/google/go-github/v33 v33.0.0 + github.com/google/go-github/v61 v61.0.0 github.com/gopasspw/gopass-hibp v1.15.12 github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/jsimonetti/pwscheme v0.0.0-20220922140336-67a4d090f150 diff --git a/go.sum b/go.sum index 148b3bbcb1..1624fd7e91 100644 --- a/go.sum +++ b/go.sum @@ -63,17 +63,13 @@ github.com/gokyle/twofactor v1.0.1 h1:uRhvx0S4Hb82RPIDALnf7QxbmPL49LyyaCkJDpWx+E github.com/gokyle/twofactor v1.0.1/go.mod h1:4gxzH1eaE/F3Pct/sCDNOylP0ClofUO5j4XZN9tKtLE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= -github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= -github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM= -github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/go-github/v61 v61.0.0 h1:VwQCBwhyE9JclCI+22/7mLB1PuU9eowCXKY5pNlu1go= +github.com/google/go-github/v61 v61.0.0/go.mod h1:0WR+KmsWX75G2EbpyGsGmradjo3IiciuI4BmdVCobQY= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/gopasspw/gopass-hibp v1.15.12 h1:no/CpU3WSSAI3CQ6UZazESv2tiWNeCgMRFNanoXCqJQ= @@ -245,7 +241,6 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.19.0 h1:9+E/EZBCbTLNrbN35fHv/a/d/mOBatymz1zbtQrXpIg= golang.org/x/oauth2 v0.19.0/go.mod h1:vYi7skDa1x015PmRRYZ7+s1cWyPgrPiSYRe4rnsexc8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -307,7 +302,6 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/helpers/postrel/main.go b/helpers/postrel/main.go index 42c379555c..a638c0693c 100644 --- a/helpers/postrel/main.go +++ b/helpers/postrel/main.go @@ -27,7 +27,7 @@ import ( "time" "github.com/blang/semver/v4" - "github.com/google/go-github/v33/github" + "github.com/google/go-github/v61/github" "github.com/gopasspw/gopass/pkg/fsutil" "golang.org/x/oauth2" ) @@ -206,10 +206,9 @@ func (g *ghClient) createMilestone(ctx context.Context, title string, offset int } } - due := time.Now().Add(time.Duration(offset) * 30 * 24 * time.Hour) _, _, err := g.client.Issues.CreateMilestone(ctx, g.org, g.repo, &github.Milestone{ Title: &title, - DueOn: &due, + DueOn: &github.Timestamp{Time: time.Now().Add(time.Duration(offset) * 30 * 24 * time.Hour)}, }) if err == nil { fmt.Printf("✅ Milestone %s created\n", title) diff --git a/internal/cache/ghssh/cache.go b/internal/cache/ghssh/cache.go index a51ee11d24..e9d83ca4c1 100644 --- a/internal/cache/ghssh/cache.go +++ b/internal/cache/ghssh/cache.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/google/go-github/github" + "github.com/google/go-github/v61/github" "github.com/gopasspw/gopass/internal/cache" )