File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- 0.8.6
1
+ 0.8.7
Original file line number Diff line number Diff line change @@ -118,13 +118,22 @@ func (o *RunOptions) Run() error {
118
118
opts .SetPkgPath (pwd )
119
119
result , err = cli .CompileWithOpts (opts )
120
120
} else {
121
- // If there is only kcl file without kcl package (kcl.mod)
121
+ // TODO: refactor the entry search logic.
122
+ depsOpt , depErr := LoadDepsFrom (pwd , o .Quiet )
123
+ if depErr != nil {
124
+ return err
125
+ }
126
+ opts .Merge (* depsOpt )
122
127
result , err = api .RunWithOpt (opts )
123
128
}
124
129
} else {
125
130
// kcl compiles the package from the local file system, tar and OCI package, etc.
126
131
if entry .IsLocalFile () {
127
- // If there is only kcl file without kcl package (kcl.mod)
132
+ depsOpt , depErr := LoadDepsFrom (pwd , o .Quiet )
133
+ if depErr != nil {
134
+ return err
135
+ }
136
+ opts .Merge (* depsOpt )
128
137
result , err = api .RunWithOpt (opts )
129
138
} else if entry .IsLocalFileWithKclMod () {
130
139
// Else compile the kcl package (kcl.mod)
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ func getVersion(version string) string {
32
32
}
33
33
34
34
const (
35
- VersionTypeLatest = Version_0_8_6
35
+ VersionTypeLatest = Version_0_8_7
36
36
37
- Version_0_8_6 VersionType = "0.8.6"
37
+ Version_0_8_7 VersionType = "0.8.7"
38
+ Version_0_8_6 VersionType = "0.8.7"
38
39
Version_0_8_5 VersionType = "0.8.5"
39
40
Version_0_8_4 VersionType = "0.8.4"
40
41
Version_0_8_3 VersionType = "0.8.3"
You can’t perform that action at this time.
0 commit comments