I think both are needed, they don't overlap. Note that the second phrase 
says "must not contain '.' or '..' path *elements*", emphasis them being a 
complete path element. So "./git" is disallowed by the second phrase, but 
".git" is not.

On Saturday, January 16, 2021 at 1:10:47 PM UTC-5 manlio....@gmail.com 
wrote:

> I'm reading the https://tip.golang.org/pkg/embed/ package documentation 
> and I found a possible inconsistency.
>
> At the end of https://tip.golang.org/pkg/embed/#hdr-Directives:
> "Patterns must not match files outside the package's module, such as 
> ‘.git/*’ or symbolic links"
> and
> "Patterns must not contain ‘.’ or ‘..’ path elements nor begin with a 
> leading slash"
>
> It seems to me that the first phrase is not necessary, since the second 
> phrase prevents matching files outside the package module.
>
>
> Thanks
> Manlio Perillo
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1d1d6449-da69-4600-9d40-ad35e8f4c17en%40googlegroups.com.

Reply via email to