@@ -15,15 +15,15 @@ import (
1515
1616type Maintenance struct {}
1717
18- // Updates the OS dependencies in the system-libs directory for the specified extension(s)
18+ // UpdateOSLibs updates the OS dependencies in the system-libs directory for the specified extension(s)
1919func (m * Maintenance ) UpdateOSLibs (
2020 ctx context.Context ,
21- // The source directory containing the extension folders. Defaults to the current directory
22- // +ignore=["dagger", ".github"]
23- // +defaultPath="/"
21+ // The source directory containing the extension folders. Defaults to the current directory
22+ // +ignore=["dagger", ".github"]
23+ // +defaultPath="/"
2424 source * dagger.Directory ,
25- // The target extension to update OS libs for. Defaults to "all".
26- // +default="all"
25+ // The target extension to update OS libs for. Defaults to "all".
26+ // +default="all"
2727 target string ,
2828) (* dagger.Directory , error ) {
2929 extDir := source
@@ -50,7 +50,7 @@ func (m *Maintenance) UpdateOSLibs(
5050 return nil , err
5151 }
5252
53- files := make ([]* dagger.File , 0 , len (matrix .Distributions )+ len (matrix .MajorVersions ))
53+ files := make ([]* dagger.File , 0 , len (matrix .Distributions )* len (matrix .MajorVersions ))
5454 for _ , distribution := range matrix .Distributions {
5555 for _ , majorVersion := range matrix .MajorVersions {
5656 file , err := updateOSLibsOnTarget (
@@ -73,12 +73,12 @@ func (m *Maintenance) UpdateOSLibs(
7373 }), nil
7474}
7575
76- // Return a list in JSON format of the extensions requiring OS libs updates
76+ // UpdateOSLibsTargets return a list in JSON format of the extensions requiring OS libs updates
7777func (m * Maintenance ) UpdateOSLibsTargets (
7878 ctx context.Context ,
79- // The source directory containing the extension folders. Defaults to the current directory
80- // +ignore=["dagger", ".github"]
81- // +defaultPath="/"
79+ // The source directory containing the extension folders. Defaults to the current directory
80+ // +ignore=["dagger", ".github"]
81+ // +defaultPath="/"
8282 source * dagger.Directory ,
8383) (string , error ) {
8484 targetExtensions , err := extensionsWithOSLibs (ctx , source )
0 commit comments