Skip to content

Commit 3a0b7e5

Browse files
committed
update pkg name
Signed-off-by: Stephanie <[email protected]>
1 parent b0befbe commit 3a0b7e5

Some content is hidden

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

43 files changed

+84
-83
lines changed

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ github.com/devfile/api/v2 v2.0.0-20220117162434-6e6e6a8bc14c/go.mod h1:d99eTN6Qx
294294
github.com/devfile/api/v2 v2.2.0 h1:3Mwl/dtT508oU4pNt/v4G8vqvjoZqi9LOInXCNwKMoc=
295295
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 (

pkg/devfile/parser/context/apiVersion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"strings"
2222

23-
"github.com/devfile/library/pkg/devfile/parser/data"
23+
"github.com/devfile/library/v2/pkg/devfile/parser/data"
2424
"github.com/pkg/errors"
2525
"k8s.io/klog"
2626
)

0 commit comments

Comments
 (0)