From f6f8802ffb755a5cc31576cd6e07b4f28c50d06b Mon Sep 17 00:00:00 2001 From: zongz Date: Thu, 21 Dec 2023 17:01:23 +0800 Subject: [PATCH] fix: add 'Deprecated' for RunWithOpt Signed-off-by: zongz --- pkg/api/kpm_run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/api/kpm_run.go b/pkg/api/kpm_run.go index 0a4d1e6a..8e954462 100644 --- a/pkg/api/kpm_run.go +++ b/pkg/api/kpm_run.go @@ -67,6 +67,7 @@ func RunPkgInPath(opts *opt.CompileOptions) (string, error) { } // CompileWithOpt will compile the kcl program without kcl package. +// Deprecated: This method will not be maintained in the future. Use RunWithOpts instead. func RunWithOpt(opts *opt.CompileOptions) (*kcl.KCLResultList, error) { if len(opts.Entries()) > 0 { for _, entry := range opts.Entries() {