Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit e9ce1fe

Browse files
author
kthcloud
committed
[🚚 CI] Generate build from main
1 parent a3c5317 commit e9ce1fe

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

‎export/tygo.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
packages:
2+
- path: sys-api/dto/body
3+
output_path: types/body
4+
type_mappings:
5+
time.Time: "string"
6+
- path: sys-api/dto/query
7+
output_path: types/query
8+
type_mappings:
9+
time.Time: "string"
10+
# - path: sys-api/dto/uri
11+
# output_path: types/uri
12+
# type_mappings:
13+
# time.Time: "string"

‎pkg/config/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ func Setup() error {
4444
continue
4545
}
4646

47-
clusterName := strings.TrimSuffix(file.Name(), filepath[strings.LastIndex(filepath, "."):])
47+
filename := file.Name()
48+
clusterName := strings.TrimSuffix(filename, filename[strings.LastIndex(filename, "."):])
4849
configData, err := os.ReadFile(models.Config.K8s.ConfigDir + "/" + file.Name())
4950
if err != nil {
5051
fmt.Println(makeError(err))

0 commit comments

Comments
 (0)