Drop dir source and do http and docker source

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2025-04-03 16:46:59 +02:00
parent adb6aa2450
commit bcb6c40f5d
2 changed files with 21 additions and 39 deletions

View File

@@ -1099,12 +1099,12 @@ func validateSourceSysext(source string) error {
return nil
}
r, err := regexp.Compile(`^oci:|^dir:|^file:|^http:|^https:`)
r, err := regexp.Compile(`^oci:|^file:|^http:|^https:`)
if err != nil {
return err
}
if !r.MatchString(source) {
return fmt.Errorf("source %s does not match any of oci:, dir:, file: or http(s): ", source)
return fmt.Errorf("source %s does not match any of oci:, file: or http(s): ", source)
}
return nil