Skip to content

Commit f1de9b5

Browse files
authored
Merge pull request #150 from devfile/v2.0.x
bump up to v2
2 parents 4aa3581 + 3a0b7e5 commit f1de9b5

44 files changed

Lines changed: 88 additions & 87 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module github.com/devfile/library
1+
module github.com/devfile/library/v2
22

33
go 1.15
44

55
require (
6-
github.com/devfile/api/v2 v2.0.0-20220614133608-351f05b7c2b1
6+
github.com/devfile/api/v2 v2.2.0
77
github.com/devfile/registry-support/index/generator v0.0.0-20220527155645-8328a8a883be // indirect
88
github.com/devfile/registry-support/registry-library v0.0.0-20220627163229-4aa39fcb0c0a
99
github.com/fatih/color v1.7.0

go.sum

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
291291
github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba/go.mod h1:dV8lFg6daOBZbT6/BDGIz6Y3WFGn8juu6G+CQ6LHtl0=
292292
github.com/devfile/api/v2 v2.0.0-20211021164004-dabee4e633ed/go.mod h1:d99eTN6QxgzihOOFyOZA+VpUyD4Q1pYRYHZ/ci9J96Q=
293293
github.com/devfile/api/v2 v2.0.0-20220117162434-6e6e6a8bc14c/go.mod h1:d99eTN6QxgzihOOFyOZA+VpUyD4Q1pYRYHZ/ci9J96Q=
294-
github.com/devfile/api/v2 v2.0.0-20220614133608-351f05b7c2b1 h1:rwhw0TQUCS/qT4iDsoOPV/AaopUiYYYXs5zXeX1n6Ts=
295-
github.com/devfile/api/v2 v2.0.0-20220614133608-351f05b7c2b1/go.mod h1:dN7xFrOVG+iPqn4UKGibXLd5oVsdE8XyK9OEb5JL3aI=
294+
github.com/devfile/api/v2 v2.2.0 h1:3Mwl/dtT508oU4pNt/v4G8vqvjoZqi9LOInXCNwKMoc=
295+
github.com/devfile/api/v2 v2.2.0/go.mod h1:dN7xFrOVG+iPqn4UKGibXLd5oVsdE8XyK9OEb5JL3aI=
296296
github.com/devfile/library v1.2.1-0.20211104222135-49d635cb492f/go.mod h1:uFZZdTuRqA68FVe/JoJHP92CgINyQkyWnM2Qyiim+50=
297+
github.com/devfile/library v1.2.1-0.20220308191614-f0f7e11b17de h1:jImHtiAxjyul1UkPmf6C3EMS5wqNz+k84LKkCXkeqws=
297298
github.com/devfile/library v1.2.1-0.20220308191614-f0f7e11b17de/go.mod h1:GSPfJaBg0+bBjBHbwBE5aerJLH6tWGQu2q2rHYd9czM=
298299
github.com/devfile/registry-support/index/generator v0.0.0-20220222194908-7a90a4214f3e/go.mod h1:iRPBxs+ZjfLEduVXpCCIOzdD2588Zv9OCs/CcXMcCCY=
299300
github.com/devfile/registry-support/index/generator v0.0.0-20220527155645-8328a8a883be h1:tCdIUbJ1eZV/jRa1gjs3dPZsbTjRibDqwRqIK4HCI9k=

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
"reflect"
2222
"strings"
2323

24-
devfilepkg "github.com/devfile/library/pkg/devfile"
25-
"github.com/devfile/library/pkg/devfile/parser"
26-
v2 "github.com/devfile/library/pkg/devfile/parser/data/v2"
27-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
24+
devfilepkg "github.com/devfile/library/v2/pkg/devfile"
25+
"github.com/devfile/library/v2/pkg/devfile/parser"
26+
v2 "github.com/devfile/library/v2/pkg/devfile/parser/data/v2"
27+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
2828
)
2929

3030
func main() {

pkg/devfile/generator/generators.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import (
1919
"fmt"
2020

2121
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
22-
"github.com/devfile/library/pkg/devfile/parser"
23-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
24-
"github.com/devfile/library/pkg/util"
22+
"github.com/devfile/library/v2/pkg/devfile/parser"
23+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
24+
"github.com/devfile/library/v2/pkg/util"
2525
buildv1 "github.com/openshift/api/build/v1"
2626
imagev1 "github.com/openshift/api/image/v1"
2727
routev1 "github.com/openshift/api/route/v1"

pkg/devfile/generator/generators_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import (
2828

2929
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
3030
"github.com/devfile/api/v2/pkg/attributes"
31-
"github.com/devfile/library/pkg/devfile/parser"
32-
"github.com/devfile/library/pkg/devfile/parser/data"
33-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
34-
"github.com/devfile/library/pkg/testingutil"
35-
"github.com/devfile/library/pkg/util"
31+
"github.com/devfile/library/v2/pkg/devfile/parser"
32+
"github.com/devfile/library/v2/pkg/devfile/parser/data"
33+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
34+
"github.com/devfile/library/v2/pkg/testingutil"
35+
"github.com/devfile/library/v2/pkg/util"
3636
"github.com/golang/mock/gomock"
3737

3838
corev1 "k8s.io/api/core/v1"

pkg/devfile/generator/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"strings"
2424

2525
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
26-
"github.com/devfile/library/pkg/devfile/parser"
27-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
26+
"github.com/devfile/library/v2/pkg/devfile/parser"
27+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
2828
buildv1 "github.com/openshift/api/build/v1"
2929
routev1 "github.com/openshift/api/route/v1"
3030
appsv1 "k8s.io/api/apps/v1"

pkg/devfile/generator/utils_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424
"testing"
2525

2626
"github.com/devfile/api/v2/pkg/attributes"
27-
"github.com/devfile/library/pkg/devfile/parser"
28-
"github.com/devfile/library/pkg/devfile/parser/data"
29-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
30-
"github.com/devfile/library/pkg/testingutil"
27+
"github.com/devfile/library/v2/pkg/devfile/parser"
28+
"github.com/devfile/library/v2/pkg/devfile/parser/data"
29+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
30+
"github.com/devfile/library/v2/pkg/testingutil"
3131
"github.com/golang/mock/gomock"
3232
buildv1 "github.com/openshift/api/build/v1"
3333

pkg/devfile/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ package devfile
1717

1818
import (
1919
"github.com/devfile/api/v2/pkg/validation/variables"
20-
"github.com/devfile/library/pkg/devfile/parser"
21-
"github.com/devfile/library/pkg/devfile/validate"
20+
"github.com/devfile/library/v2/pkg/devfile/parser"
21+
"github.com/devfile/library/v2/pkg/devfile/validate"
2222
)
2323

2424
// ParseFromURLAndValidate func parses the devfile data from the url

pkg/devfile/parse_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"testing"
2626

2727
"github.com/devfile/api/v2/pkg/validation/variables"
28-
"github.com/devfile/library/pkg/devfile/parser"
29-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
28+
"github.com/devfile/library/v2/pkg/devfile/parser"
29+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
3030
)
3131

3232
func TestParseDevfileAndValidate(t *testing.T) {

pkg/devfile/parser/configurables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package parser
1717

1818
import (
1919
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
20-
"github.com/devfile/library/pkg/devfile/parser/data/v2/common"
20+
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
2121
)
2222

2323
const (

0 commit comments

Comments
 (0)