Currently, the pattern test/**/* does not match test/file but it does match test//file (https://play.golang.org/p/geU9afuijny). While this is technically correct, it is not what users expect, since test/file and test//file are identical in the context of file systems.
This situation could be solved by modifying the AST. This could also be added as an option using the pattern described in https://github.com/gobwas/glob/issues/45.
As was already discussed in https://github.com/gobwas/glob/issues/20, patterns containing
**/*
may lead to unexpected results for most users. After porting https://github.com/goreleaser/nfpm toglob
, this was reported as a regression (https://github.com/goreleaser/nfpm/issues/256).Currently, the pattern
test/**/*
does not matchtest/file
but it does matchtest//file
(https://play.golang.org/p/geU9afuijny). While this is technically correct, it is not what users expect, sincetest/file
andtest//file
are identical in the context of file systems.This situation could be solved by modifying the AST. This could also be added as an option using the pattern described in https://github.com/gobwas/glob/issues/45.