Skip to content

Commit a8a06c2

Browse files
authored
Merge pull request #55 from zong-zhe/move-ah-integration
feat: move all the metadata to '.integration/artifacthub'
2 parents ff607ad + 6030b04 commit a8a06c2

File tree

222 files changed

+4
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+4
-2
lines changed

main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const (
3131
MdFlagPackageName = "<package_name>"
3232
MdFlagPackageTag = "<package_tag>"
3333

34-
DefaultPkgDesc = "This is a KCL package"
34+
DefaultPkgDesc = "This is a KCL package"
35+
IntergrationPath = ".integration"
36+
IntergrationAh = "artifacthub"
3537
)
3638

3739
type Metadata struct {
@@ -79,7 +81,7 @@ func UpdateReadmeAndMetadata(pkgPath string, allowUserMetadataOverride bool) err
7981

8082
pkgName := kclPkg.GetPkgName()
8183
pkgTag := kclPkg.GetPkgVersion()
82-
ahDir := filepath.Join(pkgPath, pkgTag)
84+
ahDir := filepath.Join(IntergrationPath, IntergrationAh, pkgName, pkgTag)
8385

8486
err = os.MkdirAll(ahDir, 0755)
8587
if err != nil {

0 commit comments

Comments
 (0)