Skip to content

Commit 64500f7

Browse files
authored
Merge pull request #297 from carolynvs/bump-deps
Update dependencies
2 parents cc800b2 + 8bf212d commit 64500f7

File tree

13 files changed

+85
-582
lines changed

13 files changed

+85
-582
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ delete-test-cluster:
3434

3535
GOPATH := $(shell go env GOPATH)
3636
HAS_GOLANGCI := $(shell $(CHECK) golangci-lint)
37-
GOLANGCI_VERSION := v1.46.2
37+
GOLANGCI_VERSION := v1.51.2
3838
HAS_KIND := $(shell $(CHECK) kind)
3939
HAS_KUBECTL := $(shell $(CHECK) kubectl)
4040
HAS_GOCOV_XML := $(shell $(CHECK) gocov-xml;)

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pool:
44
steps:
55
- task: GoTool@0
66
inputs:
7-
version: '1.17.8'
7+
version: '1.19.6'
88
displayName: 'Install Go'
99

1010
- script: |

brigade.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { events, Job } = require("brigadier");
33
const projectOrg = "cnabio";
44
const projectName = "cnab-go";
55

6-
const goImg = "golang:1.17";
6+
const goImg = "golang:1.19";
77
const gopath = "/go";
88
const localPath = gopath + `/src/github.com/${projectOrg}/${projectName}`;
99

bundle/bundle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
// CNABSpecVersion represents the CNAB Spec version of the Bundle
2020
// that this library implements
2121
// This value is prefixed with e.g. `cnab-core-` so isn't itself valid semver.
22-
var CNABSpecVersion string = "cnab-core-1.2.0"
22+
var CNABSpecVersion = "cnab-core-1.2.0"
2323

2424
// Bundle is a CNAB metadata document
2525
type Bundle struct {

bundle/bundle_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
11-
yaml "gopkg.in/yaml.v2"
11+
"gopkg.in/yaml.v2"
1212

1313
"github.com/cnabio/cnab-go/bundle/definition"
1414
"github.com/cnabio/cnab-go/schema"
@@ -583,7 +583,7 @@ var exampleCred = Credential{
583583
},
584584
}
585585

586-
var exampleBundle *Bundle = &Bundle{
586+
var exampleBundle = &Bundle{
587587
SchemaVersion: "1.0.1",
588588
Name: "testBundle",
589589
Description: "something",

bundle/loader/loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type BundleLoader interface {
2222
type Loader struct{}
2323

2424
// New creates a loader for bundle files.
25-
//TODO: remove if unnecessary
25+
// TODO: remove if unnecessary
2626
func New() BundleLoader {
2727
return &Loader{}
2828
}

claim/doc.go

+29-20
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,42 @@ by the result ID and are keyed by the "ResultID-OutputName" to generate a unique
1717
The groups allow for querying by storage systems that support it.
1818
1919
claims/
20-
INSTALLATION/
21-
CLAIM_ID
20+
21+
INSTALLATION/
22+
CLAIM_ID
23+
2224
results/
23-
CLAIM_ID/
24-
RESULT_ID
25+
26+
CLAIM_ID/
27+
RESULT_ID
28+
2529
outputs/
26-
RESULT_ID/
27-
RESULT_ID-OUTPUT_NAME
2830
29-
Example
31+
RESULT_ID/
32+
RESULT_ID-OUTPUT_NAME
33+
34+
# Example
3035
3136
claims/
32-
mysql/
33-
01EAZDEPCBPEEHQG9C4AF5X1PY.json (install)
34-
01EAZDEW0R8MQ0GS5D5EAQA2J9.json (upgrade)
35-
wordpress/
36-
01EAZDF3ARH5J2D7A30A8Z9QRW.json (install)
37+
38+
mysql/
39+
01EAZDEPCBPEEHQG9C4AF5X1PY.json (install)
40+
01EAZDEW0R8MQ0GS5D5EAQA2J9.json (upgrade)
41+
wordpress/
42+
01EAZDF3ARH5J2D7A30A8Z9QRW.json (install)
43+
3744
results/
38-
01EAZDEPCBPEEHQG9C4AF5X1PY/ (mysql - install)
39-
01EAZDGPM8EQKXA544AHCBMYXH.json (success)
40-
01EAZDEW0R8MQ0GS5D5EAQA2J9 (mysql - upgrade)
41-
01EAZDHFZJE34ND6GE3BVPP1JA (success)
42-
01EAZDF3ARH5J2D7A30A8Z9QRW (wordpress - install)
43-
01EAZDJ8FPR0CD8BNG8EBBGA0N (running)
45+
46+
01EAZDEPCBPEEHQG9C4AF5X1PY/ (mysql - install)
47+
01EAZDGPM8EQKXA544AHCBMYXH.json (success)
48+
01EAZDEW0R8MQ0GS5D5EAQA2J9 (mysql - upgrade)
49+
01EAZDHFZJE34ND6GE3BVPP1JA (success)
50+
01EAZDF3ARH5J2D7A30A8Z9QRW (wordpress - install)
51+
01EAZDJ8FPR0CD8BNG8EBBGA0N (running)
52+
4453
outputs/
45-
01EAZDGPM8EQKXA544AHCBMYXH/
46-
01EAZDGPM8EQKXA544AHCBMYXH-CONNECTIONSTRING
4754
55+
01EAZDGPM8EQKXA544AHCBMYXH/
56+
01EAZDGPM8EQKXA544AHCBMYXH-CONNECTIONSTRING
4857
*/
4958
package claim

credentials/credentialset.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ func Validate(given valuesource.Set, spec map[string]bundle.Credential, action s
9292
//
9393
// The typical workflow for working with a credential set is:
9494
//
95-
// - Load the set
96-
// - Validate the credentials against a spec
97-
// - Resolve the credentials
98-
// - Expand them into bundle values
95+
// - Load the set
96+
// - Validate the credentials against a spec
97+
// - Resolve the credentials
98+
// - Expand them into bundle values
9999
func (c *CredentialSet) ResolveCredentials(s secrets.Store) (valuesource.Set, error) {
100100
l := len(c.Credentials)
101101
res := make(map[string]string, l)

go.mod

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module github.com/cnabio/cnab-go
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/Masterminds/semver v1.5.0
77
github.com/cnabio/image-relocation v0.0.0-20220815190842-cd2f11ecad88
88
github.com/cyberphone/json-canonicalization v0.0.0-20210303052042-6bc126869bf4
9-
github.com/docker/cli v23.0.0-rc.1+incompatible
9+
github.com/docker/cli v23.0.1+incompatible
1010
github.com/docker/distribution v2.8.1+incompatible
11-
github.com/docker/docker v23.0.0-rc.1+incompatible
11+
github.com/docker/docker v23.0.1+incompatible
1212
github.com/docker/go-connections v0.4.0
1313
github.com/hashicorp/go-multierror v1.1.1
1414
github.com/mitchellh/copystructure v1.0.0
@@ -105,12 +105,12 @@ require (
105105
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
106106
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
107107
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
108-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
108+
golang.org/x/net v0.7.0 // indirect
109109
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
110-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
111-
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
112-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
113-
golang.org/x/text v0.3.7 // indirect
110+
golang.org/x/sync v0.1.0 // indirect
111+
golang.org/x/sys v0.5.0 // indirect
112+
golang.org/x/term v0.5.0 // indirect
113+
golang.org/x/text v0.7.0 // indirect
114114
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
115115
google.golang.org/appengine v1.6.7 // indirect
116116
google.golang.org/protobuf v1.28.0 // indirect

0 commit comments

Comments
 (0)