[lxc-devel] [distrobuilder/master] doc: mention `go get ...` failure in README

vicamo on Github lxc-bot at linuxcontainers.org
Thu Jul 4 15:10:17 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 322 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190704/0d1c0f22/attachment.bin>
-------------- next part --------------
From b22e8f3e277cb998811dfd4508c88dba61ee397e Mon Sep 17 00:00:00 2001
From: You-Sheng Yang <vicamo at gmail.com>
Date: Thu, 4 Jul 2019 23:07:35 +0800
Subject: [PATCH] doc: mention `go get ...` failure in README

Closes: #186
---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 573f580..19b5427 100644
--- a/README.md
+++ b/README.md
@@ -50,10 +50,10 @@ sudo apt update
 sudo apt install -y golang-go debootstrap rsync gpg squashfs-tools
 ```
 
-Second, download the source code of the `distrobuilder` repository (this repository). The source will be placed in `$HOME/go/src/github.com/lxc/distrobuilder/`
+Second, download the source code of the `distrobuilder` repository (this repository). The source will be placed in `$HOME/go/src/github.com/lxc/distrobuilder/`. Note that `distrobuilder` has no Go file in its root directory, so `go get ...` will always fail with `no Go files in ...` error.
 
 ```
-go get -d -v github.com/lxc/distrobuilder
+go get -d -v github.com/lxc/distrobuilder || true
 ```
 
 Third, enter the directory with the source code of `distrobuilder` and run `make` to compile the source code. This will generate the executable program `distrobuilder`, and it will be located at `$HOME/go/bin/distrobuilder`.


More information about the lxc-devel mailing list