Skip to content

Commit

Permalink
tar: use absolute path as srcPath when generating the tar stream
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Feb 11, 2018
1 parent a2e072c commit fcb9d66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import (
)

func createTarStream(srcPath, dockerfilePath string) (io.ReadCloser, error) {
srcPath, err := filepath.Abs(srcPath)
if err != nil {
return nil, err
}

excludes, err := parseDockerignore(srcPath)
if err != nil {
return nil, err
Expand Down

0 comments on commit fcb9d66

Please sign in to comment.