We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80fea51 commit 388f9a7Copy full SHA for 388f9a7
client/src/main/groovy/de/gesellix/docker/client/builder/GlobsMatcher.groovy
@@ -61,6 +61,9 @@ class GlobsMatcher {
61
static String separator = File.separatorChar
62
63
Matcher(FileSystem fileSystem, String pattern) {
64
+ // According to https://docs.docker.com/engine/reference/builder/#dockerignore-file
65
+ // and https://golang.org/pkg/path/filepath/#Clean we clean paths
66
+ // by removing trailing slashes and also by replacing slashes with the path separator.
67
this.pattern = pattern.replaceAll("/", "\\${separator}")
68
.split("\\${separator}")
69
.join("\\${separator}")
0 commit comments