Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 919 Bytes

BUILDING.md

File metadata and controls

18 lines (16 loc) · 919 Bytes

Build Instructions for common-host-libs

The cleanest way to build in this package is to do the following:

  1. Create an empty directory for your go workspace
    • ➜ mkdir godemo && cd godemo
  2. Set your GOPATH to this directory
    • ➜ export GOPATH=`pwd`
  3. Fork the repo if not already done. https://help.github.com/en/articles/fork-a-repo
  4. Get the repository using git or 'go get' (examples below)
    • Use git to obtain the repository
      • ➜ git clone https://github.com/<username>/common-host-libs.git src/github.com/hpe-storage/common-host-libs
    • Use 'go get' to obtain util
      • ➜ go get -d github.com/hpe-storage/common-host-libs/util
  5. Change your working directory to the root of the repository
    • ➜ cd src/github.com/hpe-storage/common-host-libs
  6. Build the entire repository to make sure everything compiles and tests
    • ➜ make all