Skip to content

Commit ea2f759

Browse files
authored
Merge pull request #395 from suligap/snapd-version-update-oct-2022
Update the snapd dependency
2 parents 9d01e92 + 5ff258e commit ea2f759

File tree

7 files changed

+99
-77
lines changed

7 files changed

+99
-77
lines changed

.github/workflows/pr-golang.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [pull_request]
33
jobs:
44
build:
55
name: Test
6-
runs-on: ubuntu-16.04
6+
runs-on: ubuntu-20.04
77
steps:
88
- name: Set up Go
99
uses: actions/setup-go@v1

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ install:
5959
GOBIN=$(GOBIN) $(GO) install $(GOFLAGS) -ldflags "$(LDFLAGS) -w" -v github.com/CanonicalLtd/serial-vault/cmd/serial-vault
6060
GOBIN=$(GOBIN) $(GO) install $(GOFLAGS) -ldflags "$(LDFLAGS) -w" -v github.com/CanonicalLtd/serial-vault/cmd/serial-vault-admin
6161
GOBIN=$(GOBIN) $(GO) install $(GOFLAGS) -ldflags "$(LDFLAGS) -w" -v github.com/CanonicalLtd/serial-vault/cmd/factory
62-
62+
6363
.PHONY: build-static
6464
build-static:
6565
$(info # Building ${SERVICE_NAME} binaries)
@@ -98,9 +98,10 @@ vendor:
9898
vendoring-ci: mkdir-tmp
9999
rm -rf ${VENDOR_TMP}
100100
${GO} mod vendor
101+
${GO} mod tidy
101102
mv ${VENDOR} ${VENDOR_TMP}
102103
git clone $(VENDOR_BRANCH_URL) $(VENDOR)
103-
cp -r ${VENDOR_TMP} .
104+
@rsync -a -m --ignore-times --exclude /README --exclude /.git --delete "${VENDOR_TMP}/" "${VENDOR}/"
104105
cd ${VENDOR} && git add . && git checkout -b vendoring-$(JOBDATE)
105106
@echo "\n!!! Please go to $(VENDOR) folder check the changes and create a MP !!!\n"
106107

datastore/mock_keystore.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ func (emkdb *errorMockKeypairManager) Put(privKey asserts.PrivateKey) error {
4545
return errors.New("MOCK error saving the private key")
4646
}
4747

48+
func (emkdb *errorMockKeypairManager) Delete(keyID string) error {
49+
return errors.New("MOCK error deleting the private key")
50+
}
51+
4852
// GetErrorMockKeyStore creates a mocked keystore
4953
func GetErrorMockKeyStore(config config.Settings) (*KeypairDatabase, error) {
5054
mockStore := new(errorMockKeypairManager)

go.mod

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,28 @@ module github.com/CanonicalLtd/serial-vault
33
go 1.13
44

55
require (
6-
github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible // indirect
7-
github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7 // indirect
86
github.com/Masterminds/squirrel v1.2.0
97
github.com/dgrijalva/jwt-go v3.2.0+incompatible
10-
github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4 // indirect
118
github.com/getsentry/sentry-go v0.8.0
129
github.com/godbus/dbus v4.1.0+incompatible // indirect
1310
github.com/gorilla/context v1.1.1 // indirect
1411
github.com/gorilla/csrf v1.0.3-0.20161122164500-69581736821c
15-
github.com/gorilla/mux v1.6.1
12+
github.com/gorilla/mux v1.7.4-0.20190701202633-d83b6ffe499a
1613
github.com/gorilla/securecookie v1.1.1 // indirect
17-
github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0 // indirect
18-
github.com/jessevdk/go-flags v1.4.0
19-
github.com/juju/ratelimit v1.0.1 // indirect
14+
github.com/jessevdk/go-flags v1.5.1-0.20210607101731-3927b71304df
15+
github.com/juju/loggo v0.0.0-20180524022052-584905176618 // indirect
16+
github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073 // indirect
2017
github.com/juju/usso v0.0.0-20160418121039-5b79b358f4bb
2118
github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2
2219
github.com/mattn/go-sqlite3 v1.6.0
23-
github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed // indirect
24-
github.com/ojii/gettext.go v0.0.0-20170120061437-b6dae1d7af8a // indirect
2520
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
2621
github.com/prometheus/client_golang v1.1.0
27-
github.com/snapcore/bolt v1.3.1 // indirect
28-
github.com/snapcore/go-gettext v0.0.0-20191107141714-82bbea49e785 // indirect
29-
github.com/snapcore/snapd v0.0.0-20200317200833-16631e228c07
22+
github.com/snapcore/snapd v0.0.0-20221025171519-3c05e535e5cf
3023
github.com/yohcop/openid-go v0.0.0-20170901155220-cfc72ed89575 // indirect
31-
golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9
32-
gopkg.in/check.v1 v1.0.0-20161208181325-20d25e280405
24+
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90
25+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
3326
gopkg.in/errgo.v1 v1.0.0-20161222125816-442357a80af5
3427
gopkg.in/macaroon.v1 v1.0.0-20170816141150-ab101776739e
35-
gopkg.in/retry.v1 v1.0.0 // indirect
36-
gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637 // indirect
37-
gopkg.in/yaml.v2 v2.2.4
28+
gopkg.in/yaml.v2 v2.4.0
29+
launchpad.net/gocheck v0.0.0-20140225173054-000000000087 // indirect
3830
)

0 commit comments

Comments
 (0)