Skip to content

Commit c5891c0

Browse files
authored
Bump importas to HEAD (#1899)
1 parent 42cc784 commit c5891c0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.golangci.example.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ linters-settings:
464464
servingv1: knative.dev/serving/pkg/apis/serving/v1
465465
# using `autoscalingv1alpha1` alias for `knative.dev/serving/pkg/apis/autoscaling/v1alpha1` package
466466
autoscalingv1alpha1: knative.dev/serving/pkg/apis/autoscaling/v1alpha1
467+
# You can specify the package path by regular expression,
468+
# and alias by regular expression expansion syntax like below.
469+
# see https://github.com/julz/importas#use-regular-expression for details
470+
"$1$2": 'knative.dev/serving/pkg/apis/(\w+)/(v[\w\d]+)'
467471
gomoddirectives:
468472
# Allow local `replace` directives. Default is false.
469473
replace-local: false

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ require (
3737
github.com/jgautheron/goconst v1.4.0
3838
github.com/jingyugao/rowserrcheck v0.0.0-20210315055705-d907ca737bb1
3939
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af
40-
github.com/julz/importas v0.0.0-20210228071311-d0bf5cb4e1db
40+
github.com/julz/importas v0.0.0-20210405141620-a22c8f743dc9
4141
github.com/kisielk/errcheck v1.6.0
4242
github.com/kulti/thelper v0.4.0
4343
github.com/kunwardeep/paralleltest v1.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)