diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-07 15:46:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 15:46:49 +0100 |
commit | 01f436ca4707569e9f8c3d08fb0a057aa62ea059 (patch) | |
tree | 55f978130a6a950653cc809cff7949af113e19fc /install.md | |
parent | b91c87509e55e88aa9f89faf270ee291df8a78f7 (diff) | |
parent | 0f0ba530306701cc7443d4a0e514149d8329b75d (diff) | |
download | podman-01f436ca4707569e9f8c3d08fb0a057aa62ea059.tar.gz podman-01f436ca4707569e9f8c3d08fb0a057aa62ea059.tar.bz2 podman-01f436ca4707569e9f8c3d08fb0a057aa62ea059.zip |
Merge pull request #2288 from vrothberg/vendor-docs
Vendor docs
Diffstat (limited to 'install.md')
-rw-r--r-- | install.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/install.md b/install.md index 4f075332d..eba1ce8ea 100644 --- a/install.md +++ b/install.md @@ -220,6 +220,18 @@ make BUILDTAGS='seccomp apparmor' | selinux | selinux process and mount labeling | libselinux | | apparmor | apparmor profile support | libapparmor | +### Vendoring - Dependency Management + +This project is using [vndr](https://github.com/LK4D4/vndr) for managing dependencies, which is a tedious and error-prone task. Doing it manually is likely to cause inconsistencies between the `./vendor` directory (i.e., the downloaded dependencies), the source code that imports those dependencies and the `vendor.conf` configuration file that describes which packages in which version (e.g., a release or git commit) are a dependency. + +To ease updating dependencies, we provide the `make vendor` target, which fetches all dependencies mentioned in `vendor.conf`. `make vendor` whitelists certain packages to prevent the `vndr` tool from removing packages that the test suite (see `./test`) imports. + +The CI of this project makes sure that each pull request leaves a clean vendor state behind by first running the aforementioned `make vendor` followed by running `./hack/tree_status.sh` which checks if any file in the git tree has changed. + +##### Vendor Troubleshooting + +If the CI is complaining about a pull request leaving behind an unclean state, it is very likely right about it. Make sure to run `make vendor` and add all the changes to the commit. Also make sure that your local git tree does not include files not under version control that may reference other go packages. If some dependencies are removed but they should not, for instance, because the CI is needing them, then whitelist those dependencies in the `make vendor` target of the Makefile. Whitelisting a package will instruct `vndr` to not remove if during its cleanup phase. + ## Configuration files ### [registries.conf](https://src.fedoraproject.org/rpms/skopeo/blob/master/f/registries.conf) |