Skip to content

Commit 2384c1c

Browse files
committed
Fix gofmt on imports ordering
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 346a89c commit 2384c1c

Some content is hidden

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

68 files changed

+96
-96
lines changed

cmd/creds-init/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ package main
1818
import (
1919
"flag"
2020

21-
"knative.dev/pkg/logging"
2221
"github.com/tektoncd/pipeline/pkg/credentials"
2322
"github.com/tektoncd/pipeline/pkg/credentials/dockercreds"
2423
"github.com/tektoncd/pipeline/pkg/credentials/gitcreds"
24+
"knative.dev/pkg/logging"
2525
)
2626

2727
func main() {

cmd/git-init/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ package main
1818
import (
1919
"flag"
2020

21-
"knative.dev/pkg/logging"
2221
"github.com/tektoncd/pipeline/pkg/git"
22+
"knative.dev/pkg/logging"
2323
)
2424

2525
var (

pkg/apis/config/store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"testing"
2222

2323
"github.com/google/go-cmp/cmp"
24-
logtesting "knative.dev/pkg/logging/testing"
2524
test "github.com/tektoncd/pipeline/pkg/reconciler/testing"
25+
logtesting "knative.dev/pkg/logging/testing"
2626
)
2727

2828
func TestStoreLoadWithContext(t *testing.T) {

pkg/apis/pipeline/v1alpha1/cluster_task_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ limitations under the License.
1717
package v1alpha1
1818

1919
import (
20-
"knative.dev/pkg/apis"
2120
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21+
"knative.dev/pkg/apis"
2222
)
2323

2424
// Check that Task may be validated and defaulted.

pkg/apis/pipeline/v1alpha1/condition_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
package v1alpha1
2020

2121
import (
22-
"knative.dev/pkg/apis"
23-
duckv1beta1 "knative.dev/pkg/apis/duck/v1beta1"
2422
corev1 "k8s.io/api/core/v1"
2523
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24+
"knative.dev/pkg/apis"
25+
duckv1beta1 "knative.dev/pkg/apis/duck/v1beta1"
2626
)
2727

2828
// Check that Task may be validated and defaulted.

pkg/apis/pipeline/v1alpha1/condition_validation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ package v1alpha1
1818

1919
import (
2020
"context"
21-
"knative.dev/pkg/apis"
21+
2222
"k8s.io/apimachinery/pkg/api/equality"
23+
"knative.dev/pkg/apis"
2324
)
2425

2526
func (c Condition) Validate(ctx context.Context) *apis.FieldError {

pkg/apis/pipeline/v1alpha1/condition_validation_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ package v1alpha1
2020

2121
import (
2222
"context"
23+
"testing"
24+
2325
"github.com/google/go-cmp/cmp"
2426
"github.com/google/go-cmp/cmp/cmpopts"
25-
"knative.dev/pkg/apis"
2627
corev1 "k8s.io/api/core/v1"
2728
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28-
"testing"
29+
"knative.dev/pkg/apis"
2930
)
3031

3132
func TestCondition_Validate(t *testing.T) {

pkg/apis/pipeline/v1alpha1/metadata_validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ package v1alpha1
1616
import (
1717
"strings"
1818

19-
"knative.dev/pkg/apis"
2019
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
20+
"knative.dev/pkg/apis"
2121
)
2222

2323
const maxLength = 63

pkg/apis/pipeline/v1alpha1/pipeline_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ limitations under the License.
1717
package v1alpha1
1818

1919
import (
20-
"knative.dev/pkg/apis"
2120
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21+
"knative.dev/pkg/apis"
2222
)
2323

2424
// PipelineSpec defines the desired state of Pipeline.

pkg/apis/pipeline/v1alpha1/pipeline_validation.go

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

23-
"knative.dev/pkg/apis"
2423
"github.com/tektoncd/pipeline/pkg/list"
2524
"github.com/tektoncd/pipeline/pkg/templating"
2625
"golang.org/x/xerrors"
2726
"k8s.io/apimachinery/pkg/api/equality"
27+
"knative.dev/pkg/apis"
2828
)
2929

3030
// Validate checks that the Pipeline structure is valid but does not validate

0 commit comments

Comments
 (0)