This commit is contained in:
jufisch 2017-08-03 16:59:38 -04:00
Родитель 901397aa65
Коммит 5e60e01e2a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -282,8 +282,8 @@ This is the only symbolic link support that `dep` really intends to provide. In
## Does `dep` support relative imports?
No.
> dep simply doesn't allow relative imports. this is one of the few places where we restrict a case that the toolchain itself allows. we disallow them only because:
> i. the toolchain already frowns heavily on them
> dep simply doesn't allow relative imports. this is one of the few places where we restrict a case that the toolchain itself allows. we disallow them only because:<br>
> i. the toolchain already frowns heavily on them<br>
> ii. it's worse for our case, as we start venturing into [dot dot hell](http://doc.cat-v.org/plan_9/4th_edition/papers/lexnames) territory when trying to prove that the import does not escape the tree of the project -[@sdboyer in #899](https://github.com/golang/dep/issues/899#issuecomment-317904001)
## Best Practices