diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-18 16:43:24 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-10 14:34:44 +0100 |
| commit | 7ee3f3729011edc355cf089f7823ec8c8f366457 (patch) | |
| tree | ce903158d6f82ba59d85e3046cd5d522bcb193df | |
| parent | 3144c3b4fe14f66195824064df72a4a3f7b80bd6 (diff) | |
pkg/subsystem: move the exiting code to /legacy
It will help gradually switch to the new code, once it's fully ready.
| -rw-r--r-- | dashboard/app/api.go | 2 | ||||
| -rw-r--r-- | dashboard/app/app_test.go | 2 | ||||
| -rw-r--r-- | pkg/subsystem/legacy/extract.go (renamed from pkg/subsystem/extract.go) | 2 | ||||
| -rw-r--r-- | pkg/subsystem/legacy/extract_test.go (renamed from pkg/subsystem/extract_test.go) | 2 | ||||
| -rw-r--r-- | pkg/subsystem/legacy/maintainers.go (renamed from pkg/subsystem/maintainers.go) | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go index bdb7354bf..3108551df 100644 --- a/dashboard/app/api.go +++ b/dashboard/app/api.go @@ -23,7 +23,7 @@ import ( "github.com/google/syzkaller/pkg/auth" "github.com/google/syzkaller/pkg/email" "github.com/google/syzkaller/pkg/hash" - "github.com/google/syzkaller/pkg/subsystem" + subsystem "github.com/google/syzkaller/pkg/subsystem/legacy" "github.com/google/syzkaller/sys/targets" "golang.org/x/net/context" "google.golang.org/appengine/v2" diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index dd3f0a2b4..c14be5d1d 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -15,7 +15,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/syzkaller/dashboard/dashapi" "github.com/google/syzkaller/pkg/auth" - "github.com/google/syzkaller/pkg/subsystem" + subsystem "github.com/google/syzkaller/pkg/subsystem/legacy" "github.com/google/syzkaller/sys/targets" "google.golang.org/appengine/v2/user" ) diff --git a/pkg/subsystem/extract.go b/pkg/subsystem/legacy/extract.go index 1908f5e54..5c321dc97 100644 --- a/pkg/subsystem/extract.go +++ b/pkg/subsystem/legacy/extract.go @@ -1,7 +1,7 @@ // Copyright 2022 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -package subsystem +package legacy import ( "regexp" diff --git a/pkg/subsystem/extract_test.go b/pkg/subsystem/legacy/extract_test.go index eb04ff6ce..d23ec11e2 100644 --- a/pkg/subsystem/extract_test.go +++ b/pkg/subsystem/legacy/extract_test.go @@ -1,7 +1,7 @@ // Copyright 2022 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -package subsystem +package legacy import ( "sort" diff --git a/pkg/subsystem/maintainers.go b/pkg/subsystem/legacy/maintainers.go index f44e6550b..948c2d851 100644 --- a/pkg/subsystem/maintainers.go +++ b/pkg/subsystem/legacy/maintainers.go @@ -1,7 +1,7 @@ // Copyright 2022 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -package subsystem +package legacy func LinuxGetMaintainers(subsystemName string) []string { return linuxSubsystems[subsystemName].cc |
