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

+4
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

+1-1
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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)