Skip to content

Commit

Permalink
adding back the rest getters
Browse files Browse the repository at this point in the history
  • Loading branch information
Listener430 committed Jan 29, 2025
1 parent 16a72f3 commit f9b3348
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion internal/exec/go_getter_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ func RegisterCustomDetectors(atmosConfig schema.AtmosConfiguration) {
)
}

func RegisterCustomGetters(atmosConfig schema.AtmosConfiguration) {
getter.Detectors = append(
[]getter.Detector{
&CustomGitHubDetector{AtmosConfig: atmosConfig},
},
getter.Detectors...,
)
}

// GoGetterGet downloads packages (files and folders) from different sources using `go-getter` and saves them into the destination
func GoGetterGet(
atmosConfig schema.AtmosConfiguration,
Expand All @@ -178,7 +187,14 @@ func GoGetterGet(
Mode: clientMode,
Getters: map[string]getter.Getter{
// Overriding 'git'
"git": &CustomGitGetter{},
"git": &CustomGitGetter{},
"file": &getter.FileGetter{},
"hg": &getter.HgGetter{},
"http": &getter.HttpGetter{},
"https": &getter.HttpGetter{},
// "s3": &getter.S3Getter{}, // add as needed
// "gcs": &getter.GCSGetter{},

},
}
if err := client.Get(); err != nil {
Expand Down

0 comments on commit f9b3348

Please sign in to comment.