Skip to contentSkip to conversation

wireguard-go relative imports

DISCUSSION Patrick Glandien 1 participant 1 message Feb 20, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Dominik,
While relative imports are discouraged in = Go, I could see it making it sense in the context of highly sensitive code = such as wireguard.The go dependency system, including go get, = don't guarantee as to whether the code is authentic (e.g. signed).=
This is a problem to the entire ecosystem of the = language as recently witnessed when someone replaced a commonly used go = package hosted on github after the user deleted his = account: https://redd.it/7vv9zz
I have not = looked into the wireguard-go code very much, but if it's merely meant to be= a wireguard implementation in Go (not to be used as a library) - then = either relative import paths or top-level paths in an isolated go workspace= would be sensible and should not be changed to the usual canonical URL = imports.

=E2=80=94 Patrick = Glandien