Skip to content

Commit a6572d2

Browse files
committed
fix: error in checkoutt diff
Fixes an error with checking out repository. Also rekres and bump deps. Signed-off-by: Noel Georgi <[email protected]>
1 parent 43d9fb6 commit a6572d2

File tree

8 files changed

+58
-47
lines changed

8 files changed

+58
-47
lines changed

.conform.yaml

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2022-09-19T19:55:11Z by kres 255fc05.
3+
# Generated on 2024-03-01T05:36:30Z by kres latest.
44

5-
---
65
policies:
7-
- type: commit
8-
spec:
9-
dco: true
10-
gpg:
11-
required: true
12-
identity:
13-
gitHubOrganization: siderolabs
14-
spellcheck:
15-
locale: US
16-
maximumOfOneCommit: true
17-
header:
18-
length: 89
19-
imperative: true
20-
case: lower
21-
invalidLastCharacters: .
22-
body:
23-
required: true
24-
conventional:
25-
types: ["chore","docs","perf","refactor","style","test","release"]
26-
scopes: [".*"]
27-
- type: license
28-
spec:
29-
skipPaths:
30-
- .git/
31-
- testdata/
32-
includeSuffixes:
33-
- .go
34-
excludeSuffixes:
35-
- .pb.go
36-
- .pb.gw.go
37-
header: "// This Source Code Form is subject to the terms of the Mozilla Public\u000A// License, v. 2.0. If a copy of the MPL was not distributed with this\u000A// file, You can obtain one at http://mozilla.org/MPL/2.0/.\u000A"
6+
- type: commit
7+
spec:
8+
dco: true
9+
gpg:
10+
required: true
11+
identity:
12+
gitHubOrganization: siderolabs
13+
spellcheck:
14+
locale: US
15+
maximumOfOneCommit: true
16+
header:
17+
length: 89
18+
imperative: true
19+
case: lower
20+
invalidLastCharacters: .
21+
body:
22+
required: true
23+
conventional:
24+
types:
25+
- chore
26+
- docs
27+
- perf
28+
- refactor
29+
- style
30+
- test
31+
- release
32+
scopes:
33+
- .*
34+
- type: license
35+
spec:
36+
root: .
37+
skipPaths:
38+
- .git/
39+
- testdata/
40+
includeSuffixes:
41+
- .go
42+
excludeSuffixes:
43+
- .pb.go
44+
- .pb.gw.go
45+
header: |
46+
// This Source Code Form is subject to the terms of the Mozilla Public
47+
// License, v. 2.0. If a copy of the MPL was not distributed with this
48+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
44
#
5-
# Generated on 2024-02-15T11:12:36Z by kres latest.
5+
# Generated on 2024-03-01T05:36:30Z by kres latest.
66

77
ARG TOOLCHAIN
88

@@ -11,7 +11,7 @@ FROM ghcr.io/siderolabs/ca-certificates:v1.6.0 AS image-ca-certificates
1111
FROM ghcr.io/siderolabs/fhs:v1.6.0 AS image-fhs
1212

1313
# runs markdownlint
14-
FROM docker.io/node:21.6.1-alpine3.19 AS lint-markdown
14+
FROM docker.io/node:21.6.2-alpine3.19 AS lint-markdown
1515
WORKDIR /src
1616
RUN npm i -g [email protected]
1717

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2024-02-15T11:12:36Z by kres latest.
3+
# Generated on 2024-03-01T05:36:30Z by kres latest.
44

55
# common variables
66

@@ -18,11 +18,11 @@ PROTOBUF_GO_VERSION ?= 1.32.0
1818
GRPC_GO_VERSION ?= 1.3.0
1919
GRPC_GATEWAY_VERSION ?= 2.19.1
2020
VTPROTOBUF_VERSION ?= 0.6.0
21-
DEEPCOPY_VERSION ?= v0.5.5
22-
GOLANGCILINT_VERSION ?= v1.56.1
21+
DEEPCOPY_VERSION ?= v0.5.6
22+
GOLANGCILINT_VERSION ?= v1.56.2
2323
GOFUMPT_VERSION ?= v0.6.0
2424
GO_VERSION ?= 1.22.0
25-
GOIMPORTS_VERSION ?= v0.17.0
25+
GOIMPORTS_VERSION ?= v0.18.0
2626
GO_BUILDFLAGS ?=
2727
GO_LDFLAGS ?=
2828
CGO_ENABLED ?= 0

cmd/conform/serve.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
git "github.com/go-git/go-git/v5"
1818
"github.com/go-git/go-git/v5/config"
1919
"github.com/go-git/go-git/v5/plumbing"
20-
"github.com/google/go-github/v59/github"
20+
"github.com/google/go-github/v60/github"
2121
"github.com/spf13/cobra"
2222
)
2323

@@ -91,7 +91,7 @@ var serveCmd = &cobra.Command{
9191

9292
id := pullRequestEvent.GetPullRequest().GetNumber()
9393

94-
ref := plumbing.ReferenceName(pullRequestEvent.GetPullRequest().GetHead().GetRef())
94+
ref := pullRequestEvent.GetPullRequest().GetHead().GetRef()
9595

9696
refSpec := fmt.Sprintf("refs/pull/%d/head:%s", id, ref)
9797

@@ -116,7 +116,7 @@ var serveCmd = &cobra.Command{
116116
}
117117

118118
err = worktree.Checkout(&git.CheckoutOptions{
119-
Branch: ref,
119+
Branch: plumbing.NewBranchReferenceName(ref),
120120
})
121121
if err != nil {
122122
log.Printf("failed to checkout %q: %v", ref, err)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/denormal/go-gitignore v0.0.0-20180930084346-ae8ad1d07817
77
github.com/go-git/go-git/v5 v5.11.0
88
github.com/golangci/misspell v0.4.1
9-
github.com/google/go-github/v59 v59.0.0
9+
github.com/google/go-github/v60 v60.0.0
1010
github.com/jdkato/prose/v3 v3.0.0-20210921205322-a376476c2627
1111
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
1212
github.com/mitchellh/mapstructure v1.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ github.com/golangci/misspell v0.4.1/go.mod h1:9mAN1quEo3DlpbaIKKyEvRxK1pwqR9s/Se
4747
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4848
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
4949
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
50-
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
51-
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
50+
github.com/google/go-github/v60 v60.0.0 h1:oLG98PsLauFvvu4D/YPxq374jhSxFYdzQGNCyONLfn8=
51+
github.com/google/go-github/v60 v60.0.0/go.mod h1:ByhX2dP9XT9o/ll2yXAu2VD8l5eNVg8hD4Cr0S/LmQk=
5252
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
5353
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
5454
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=

internal/policy/commit/check_gpg_identity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"net/http"
1212
"sync"
1313

14-
"github.com/google/go-github/v59/github"
14+
"github.com/google/go-github/v60/github"
1515
"golang.org/x/sync/errgroup"
1616

1717
"github.com/siderolabs/conform/internal/git"

internal/reporter/reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"path"
1616
"strings"
1717

18-
"github.com/google/go-github/v59/github"
18+
"github.com/google/go-github/v60/github"
1919
)
2020

2121
// Reporter describes a hook for sending summarized results to a remote API.

0 commit comments

Comments
 (0)