Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Revert change in a75b53 to make ValidRemotes private #73

Merged
merged 1 commit into from
Oct 23, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions project/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import (
)

var (
validRemotes = []string{
// ValidRemotes list the of valid prefixes that can be sent to Docker as a build remote location
// This is public for consumers of libcompose to use
ValidRemotes = []string{
"git://",
"git@github.com:",
"github.com",
Expand Down Expand Up @@ -120,7 +122,7 @@ func resolveBuild(inFile string, serviceData rawService) (rawService, error) {
return serviceData, nil
}

for _, remote := range validRemotes {
for _, remote := range ValidRemotes {
if strings.HasPrefix(build, remote) {
return serviceData, nil
}
Expand Down