From 49f10736d19031dc300eb14aed0e27faa825f882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 12 May 2017 16:41:32 +0200 Subject: [PATCH] =?UTF-8?q?Restructure=20the=20=E2=80=9CBuilding=20without?= =?UTF-8?q?=20a=20container=E2=80=9D=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consolidate the Fedora and macOS instructions to prevent duplication, and to suggest using $GOPATH for both. Start with installing dependencies. --- README.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 40fcf93f..4f43a26c 100644 --- a/README.md +++ b/README.md @@ -113,24 +113,19 @@ Building without a container requires a bit more manual work and setup in your e - It does not require root privileges (after dependencies are installed) - It is faster, therefore more convenient for developing `skopeo`. -Make sure to clone the repository in your `GOPATH` - otherwise compilation fails. +Install the necessary dependencies: +```sh +Fedora$ sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel +macOS$ brew install gpgme +``` + +Make sure to clone this repository in your `GOPATH` - otherwise compilation fails. ```sh $ git clone https://github.com/projectatomic/skopeo $GOPATH/src/github.com/projectatomic/skopeo $ cd $GOPATH/src/github.com/projectatomic/skopeo && make binary-local ``` -To build localy on OSX: -```sh -$ brew install gpgme -$ make binary-local -``` - -You may need to install additional development packages: `gpgme-devel` and `libassuan-devel` -```sh -$ sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel -``` - ### Building in a container Building in a container is simpler, but more restrictive: - It requires the `docker` command and the ability to run Linux containers