Skip to content

Commit

Permalink
Update development doc
Browse files Browse the repository at this point in the history
- libgit2 is no longer neccesary

Signed-off-by: Tom Kennedy <[email protected]>
  • Loading branch information
tomkennedy513 committed Jul 31, 2023
1 parent 478b508 commit 3fe8ead
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Access to a Kubernetes cluster is needed in order to install the kpack controlle

```bash
kubectl cluster-info # ensure you have access to a cluster
./hack/apply.sh <IMAGE/NAME> # <IMAGE/NAME> is a writable and publicly accessible location
./hack/local.sh --help #this will provide all options for building/deploying kpack
```

#### When using private registries
Expand Down Expand Up @@ -86,43 +86,3 @@ export KPACK_TEST_NAMESPACE_LABELS="istio-injection=disabled,purpose=test"
```bash
IMAGE_REGISTRY=gcr.io/<some-project> go test ./test/...
```

### Libgit2 v1.3.0 Dependency and Installation

Several unit tests depend upon libgit2 v1.3.0.

__macOS Installation Instructions (Intel):__

1. Install `cmake` and `pkg-config`
```bash
brew install cmake pkg-config
```
2. Verify no conflicting version of `libgit2` is installed

```bash
pkg-config --print-provides libgit2
```

You should expect output which reads either: `Package libgit2 was not found in the pkg-config search path` or `libgit2 = 1.3.0`. If a version of `libgit2` other than `1.3.0` is reported as installed, consider uninstalling `1.3.0` or running the unit tests in a different environment.

3. Download `libgit2 v1.3.0` source code
```bash
mkdir libgit2-install && cd libgit2-install
curl -L -O https://github.com/libgit2/libgit2/archive/refs/tags/v1.3.0.tar.gz
```

4. Compile and Install
```bash
tar -zxf libgit2-1.3.0.tar.gz
cd libgit2-1.3.0
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_OSX_ARCHITECTURES="x86_64"
cmake --build . --target install
```

5. Verify installation
```bash
pkg-config --print-provides libgit2
```

You should expect output which reads: `libgit2 = 1.3.0`

0 comments on commit 3fe8ead

Please sign in to comment.