Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0be3c16

Browse files
committed
Remove useless check
This check is done by the packager now Signed-off-by: Djordje Lukic <[email protected]>
1 parent fae5df6 commit 0be3c16

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

internal/commands/build/compose.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package build
22

33
import (
4-
"fmt"
54
"path"
6-
"path/filepath"
75
"strings"
86

97
"github.com/docker/app/render"
@@ -26,13 +24,6 @@ func parseCompose(app *types.App, contextPath string, options buildOptions) (map
2624
pulledServices := []compose.ServiceConfig{}
2725
opts := map[string]build.Options{}
2826
for _, service := range comp.Services {
29-
// Sanity check
30-
for _, vol := range service.Volumes {
31-
if vol.Type == "bind" && !filepath.IsAbs(vol.Source) {
32-
return nil, nil, fmt.Errorf("invalid service %q: can't use relative path as volume source", service.Name)
33-
}
34-
}
35-
3627
if service.Build.Context == "" {
3728
pulledServices = append(pulledServices, service)
3829
continue

0 commit comments

Comments
 (0)