Skip to content

Commit efe21a2

Browse files
Merge pull request #1637 from spring-financial-group/fix/go-scm
chore(deps): update go-scm
2 parents ff7569c + acb6931 commit efe21a2

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/h2non/gock v1.0.9
1414
github.com/hashicorp/go-multierror v1.1.1
1515
github.com/hashicorp/golang-lru v0.5.4
16-
github.com/jenkins-x/go-scm v1.14.47
16+
github.com/jenkins-x/go-scm v1.14.53
1717
github.com/mattn/go-zglob v0.0.1
1818
github.com/onsi/ginkgo v1.16.5
1919
github.com/onsi/gomega v1.20.1
@@ -127,7 +127,7 @@ replace (
127127
github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v38.2.0+incompatible
128128

129129
// lets override the go-scm version from tektoncd
130-
github.com/jenkins-x/go-scm => github.com/jenkins-x/go-scm v1.14.47
130+
github.com/jenkins-x/go-scm => github.com/jenkins-x/go-scm v1.14.53
131131

132132
// gomodules.xyz breaks in Athens proxying
133133
gomodules.xyz/jsonpatch/v2 => github.com/gomodules/jsonpatch/v2 v2.2.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
249249
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
250250
github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM=
251251
github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
252-
github.com/jenkins-x/go-scm v1.14.47 h1:TOKaR1JaY1SGpDNK3WuHOGLavktW1GUb1+5jKLjDIsc=
253-
github.com/jenkins-x/go-scm v1.14.47/go.mod h1:1RPxLZndnvu31XhFZ+RTvXiHmMX70HkQ17bRupTQxGs=
252+
github.com/jenkins-x/go-scm v1.14.53 h1:Utc9FbHzCuyXQ9F7gmXxNLUwG70Fp2niNS+m8+eGXcY=
253+
github.com/jenkins-x/go-scm v1.14.53/go.mod h1:1RPxLZndnvu31XhFZ+RTvXiHmMX70HkQ17bRupTQxGs=
254254
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
255255
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
256256
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=

pkg/keeper/keeper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ func (f *fgc) GetFile(owner, repo, filepath, commit string) ([]byte, error) {
658658
func (f *fgc) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) {
659659
ctx := context.Background()
660660
fullName := scm.Join(owner, repo)
661-
answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit)
661+
answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{})
662662
return answer, err
663663
}
664664

pkg/plugins/trigger/periodic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (pa *PeriodicAgent) filterPeriodics(enabled map[string]*bool) map[string]*b
433433
enable := true
434434
hasPeriodics := make(map[string]*bool)
435435
for fullName := range enabled {
436-
list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD")
436+
list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD", &scm.ListOptions{})
437437
if err != nil {
438438
continue
439439
}

pkg/scmprovider/content.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ func (c *Client) GetFile(owner, repo, filepath, commit string) ([]byte, error) {
2626
func (c *Client) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) {
2727
ctx := context.Background()
2828
fullName := c.repositoryName(owner, repo)
29-
answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit)
29+
answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{})
3030
return answer, err
3131
}

0 commit comments

Comments
 (0)