Development discussion of WireGuard
 help / color / mirror / Atom feed
* Re: wireguard-go relative imports
@ 2018-02-20  9:10 Patrick Glandien
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Glandien @ 2018-02-20  9:10 UTC (permalink / raw)
  To: wireguard lists.zx2c4.com

(Pardon for previously sending an HTML response)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: wireguard-go relative imports
       [not found] <mailman.180.1519108159.2201.wireguard@lists.zx2c4.com>
@ 2018-02-20  9:04 ` Patrick Glandien
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Glandien @ 2018-02-20  9:04 UTC (permalink / raw)
  To: wireguard lists.zx2c4.com; +Cc: wireguard lists.zx2c4.com

[-- Attachment #1: Type: text/html, Size: 1016 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* wireguard-go relative imports
@ 2018-02-19 12:04 Dominik Süß
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Süß @ 2018-02-19 12:04 UTC (permalink / raw)
  To: wireguard

Can someone tell me the reason why the wireguard-go package uses
relative imports? This breaks go build when the working directory is
inside of the /home/thesuess/workspace and thus wireguard-go cannot be inst=
alled via go
get.

What are the upsides to this approach?
=

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-20  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-20  9:10 wireguard-go relative imports Patrick Glandien
     [not found] <mailman.180.1519108159.2201.wireguard@lists.zx2c4.com>
2018-02-20  9:04 ` Patrick Glandien
  -- strict thread matches above, loose matches on Subject: below --
2018-02-19 12:04 Dominik Süß

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).