1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/docs/dev/dependencies.md
W. Trevor King 7ad6d9ddd1 docs/dev/dependencies: Nest "Go" under "Build Dependencies"
This should have happened when "Build Dependencies" landed in 4278ba3f
(docs/libvirt-howto: Add dependency installation, 2018-09-24, #315).
2018-11-14 15:53:38 -08:00

1.3 KiB

Managing Dependencies

Build Dependencies

The following dependencies must be installed on your system before you can build the installer.

Fedora, CentOS, RHEL

sudo yum install golang-bin gcc-c++

If you need support for libvirt destroy, you should also install libvirt-devel.

Go

We follow a hard flattening approach; i.e. direct and inherited dependencies are installed in the base vendor/.

Dependencies are managed with dep but committed directly to the repository. If you don't have dep, install the latest release from Installation link.

We require atleast following version for dep:

dep:
 version     : v0.5.0
 build date  : 2018-07-26
 git hash    : 224a564
 go version  : go1.10.3

To add a new dependency:

  • Edit the Gopkg.toml file to add your dependency.
  • Ensure you add a version field for the tag or the revision field for commit id you want to pin to.
  • Revendor the dependencies:
dep ensure

This guide a great source to learn more about using dep is .

For the sake of your fellow reviewers, commit vendored code separately from any other changes.

Tests

See tests/README.md.