[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] golang/xenlight: init xenlight go module


  • To: Nick Rosbrook <rosbrookn@xxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxx>
  • Date: Tue, 12 May 2020 14:36:47 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=George.Dunlap@xxxxxxxxxx; spf=Pass smtp.mailfrom=George.Dunlap@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx; dmarc=pass (p=none dis=none) d=citrix.com
  • Cc: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxx>
  • Delivery-date: Tue, 12 May 2020 14:37:02 +0000
  • Ironport-sdr: 7RM7K6YbycKcovFyNYE4+HpYMyMXkX7le1fdcEMSnpr5Mhjy3H0oihw3AB8yT+YqSVo8dNWfMw qlG2XiZIANh41UHx/rruHlThEmk2QiQGW3oeCJGULgtpm27bICRya3GahviCzKqKP9QOdtzmQ7 p2Q5pssdji48PPhR1U86i96nb5DnfGBx5CqlNRfNe/BIev2di7lWu6pD48vl9Lqg97mWRlvCxz Tqlb85E+xEIKMyYsSgK4g2L8e0t7dLVPkaDYSn5MtZxkQR3cvWl+MVH9RSF9nNQnPNVU2e9zx9 iBE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWHzfMuMNvM1D6EUuQ5HJvPIpidKikdZCA
  • Thread-topic: [PATCH 2/3] golang/xenlight: init xenlight go module


> On Apr 30, 2020, at 10:39 PM, Nick Rosbrook <rosbrookn@xxxxxxxxx> wrote:
> 
> Initialize the xenlight Go module using the xenbits git-http URL,
> xenbits.xen.org/git-http/xen.git/tools/golang/xenlight, and update the
> XEN_GOCODE_URL variable in tools/Rules.mk accordingly.
> 
> Signed-off-by: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>
> ---
> tools/Rules.mk               | 2 +-
> tools/golang/xenlight/go.mod | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
> create mode 100644 tools/golang/xenlight/go.mod
> 
> diff --git a/tools/Rules.mk b/tools/Rules.mk
> index 5b8cf748ad..ca33cc7b31 100644
> --- a/tools/Rules.mk
> +++ b/tools/Rules.mk
> @@ -36,7 +36,7 @@ debug ?= y
> debug_symbols ?= $(debug)
> 
> XEN_GOPATH        = $(XEN_ROOT)/tools/golang
> -XEN_GOCODE_URL    = golang.xenproject.org
> +XEN_GOCODE_URL    = xenbits.xen.org/git-http/xen.git/tools/golang

The primary effect of this will be to install the code in 
$PREFIX/share/gocode/xenbits.xen.org/git-http/xen.git/tools/golang/xenlight 
when making debballs or doing `make install`.

I don’t immediately see the advantage of that, particularly if we’re still 
thinking about having a “prettier” path at some point in the future.  What was 
your thinking here?

> ifeq ($(debug_symbols),y)
> CFLAGS += -g3
> diff --git a/tools/golang/xenlight/go.mod b/tools/golang/xenlight/go.mod
> new file mode 100644
> index 0000000000..232d102153
> --- /dev/null
> +++ b/tools/golang/xenlight/go.mod
> @@ -0,0 +1 @@
> +module xenbits.xen.org/git-http/xen.git/tools/golang/xenlight

This should probably be s/xen/xenproject/; 

If you want I could check in a version of this patch with just the go.mod, with 
that change.

 -George

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.