From 2e7d2ac9138babfbce35d16c7b4146842ebde97d Mon Sep 17 00:00:00 2001 From: Laurence <45508533+LaurenceLiZhixin@users.noreply.github.com> Date: Fri, 9 Sep 2022 20:15:33 +0800 Subject: [PATCH] Fix: add boot import aop disable build flag (#136) --- extension/imports/boot/imports.go | 2 ++ extension/imports/boot/imports_default.go | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 extension/imports/boot/imports_default.go diff --git a/extension/imports/boot/imports.go b/extension/imports/boot/imports.go index ab1ca3f..a795e6a 100644 --- a/extension/imports/boot/imports.go +++ b/extension/imports/boot/imports.go @@ -1,3 +1,5 @@ +//go:build !disableAOP + /* * Copyright (c) 2022, Alibaba Group; * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/extension/imports/boot/imports_default.go b/extension/imports/boot/imports_default.go new file mode 100644 index 0000000..f5b0180 --- /dev/null +++ b/extension/imports/boot/imports_default.go @@ -0,0 +1,18 @@ +//go:build disableAOP + +/* + * Copyright (c) 2022, Alibaba Group; + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package boot