Skip to content

Commit f9b3348

Browse files
committed
adding back the rest getters
1 parent 16a72f3 commit f9b3348

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

internal/exec/go_getter_utils.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ func RegisterCustomDetectors(atmosConfig schema.AtmosConfiguration) {
157157
)
158158
}
159159

160+
func RegisterCustomGetters(atmosConfig schema.AtmosConfiguration) {
161+
getter.Detectors = append(
162+
[]getter.Detector{
163+
&CustomGitHubDetector{AtmosConfig: atmosConfig},
164+
},
165+
getter.Detectors...,
166+
)
167+
}
168+
160169
// GoGetterGet downloads packages (files and folders) from different sources using `go-getter` and saves them into the destination
161170
func GoGetterGet(
162171
atmosConfig schema.AtmosConfiguration,
@@ -178,7 +187,14 @@ func GoGetterGet(
178187
Mode: clientMode,
179188
Getters: map[string]getter.Getter{
180189
// Overriding 'git'
181-
"git": &CustomGitGetter{},
190+
"git": &CustomGitGetter{},
191+
"file": &getter.FileGetter{},
192+
"hg": &getter.HgGetter{},
193+
"http": &getter.HttpGetter{},
194+
"https": &getter.HttpGetter{},
195+
// "s3": &getter.S3Getter{}, // add as needed
196+
// "gcs": &getter.GCSGetter{},
197+
182198
},
183199
}
184200
if err := client.Get(); err != nil {

0 commit comments

Comments
 (0)