mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move validateContextDirectory to builder package.
This feels like it's where it belongs and it makes it exported again (which is needed for libcompose that was using it before 1.10). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
fa860c86ff
commit
fc6122a947
4 changed files with 61 additions and 51 deletions
11
builder/context_unix.go
Normal file
11
builder/context_unix.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// +build !windows
|
||||
|
||||
package builder
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func getContextRoot(srcPath string) (string, error) {
|
||||
return filepath.Join(srcPath, "."), nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue