Update README buildpack testing and packaging instructions
@@ -10,15 +10,24 @@ Official buildpack documentation can be found at [staticfile buildpack docs](htt
### Building the Buildpack
+To build this buildpack, run the following command from the buildpack's directory:
+
+1. Source the .envrc file in the buildpack directory.
+
+ ```bash
+ source .envrc
+ ```
+ To simplify the process in the future, install [direnv](https://direnv.net/) which will automatically source .envrc when you change directories.
+
1. Install buildpack-packager
- ```shell
+ ```bash
(cd src/staticfile/vendor/github.com/cloudfoundry/libbuildpack/packager/buildpack-packager && go install)
```
1. Build the buildpack
- ```shell
+ ```bash
buildpack-packager [ --cached | --uncached ]
```
@@ -36,11 +45,12 @@ Buildpacks use the [Cutlass](https://github.com/cloudfoundry/libbuildpack/cutlas
To test this buildpack, run the following command from the buildpack's directory:
-1. Install ginkgo
+1. Source the .envrc file in the buildpack directory.
```bash
- (cd src/staticfile/vendor/github.com/onsi/ginkgo/ginkgo && go install)
+ source .envrc
```
+ To simplify the process in the future, install [direnv](https://direnv.net/) which will automatically source .envrc when you change directories.
1. Run unit tests
