Skip to content

Commit

Permalink
chore: update install instructions for 2.x.x beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed May 30, 2021
1 parent 05c3ca4 commit c7b7c08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ goveralls:
curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh | bash -x; \
fi

installv3: bin
install: bin
echo "--- 🐿 Installing Pact FFI dependencies"
./build/pact-go -l DEBUG install --libDir /tmp

pact: clean #installv3 docker
pact: clean install #docker
@echo "--- 🔨 Running Pact examples"
mkdir -p ./examples/v3/pacts
go test -v -tags=consumer -count=1 github.com/pact-foundation/pact-go/examples/v3/...
Expand All @@ -47,7 +48,7 @@ release:
echo "--- 🚀 Releasing it"
"$(CURDIR)/scripts/release.sh"

test: deps install #installv3
test: deps install
@echo "--- ✅ Running tests"
@if [ -f coverage.txt ]; then rm coverage.txt; fi;
@echo "mode: count" > coverage.txt
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Read [Getting started with Pact] for more information for beginners.
- [Table of Contents](#table-of-contents)
- [Versions](#versions)
- [Installation](#installation)
- [Temporary](#temporary)
- [Go get](#go-get)
- [Manual](#manual)
- [Using Pact](#using-pact)
Expand Down Expand Up @@ -106,11 +105,6 @@ _\*_ v3 support is limited to the subset of functionality required to enable lan

## Installation

### Temporary

1. Run `go get github.com/pact-foundation/pact-go` to install the source packages, and the installer code
1. Install the vendored libraries from https://github.com/pact-foundation/pact-go/releases/tag/2.0.0-alpha.1 into your library search path

### Go get

1. Run `go get github.com/pact-foundation/pact-go` to install the source packages, and the installer code
Expand Down Expand Up @@ -141,7 +135,7 @@ mv libpact_mock_server_ffi-osx-x86_64.dylib /usr/local/lib/libpact_mock_server_f
Test the installation:

```sh
pact help
pact-go help
```

## Using Pact
Expand Down
2 changes: 1 addition & 1 deletion command/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)

var Version = "v1.4.3"
var Version = "v2.0.0-beta.1"
var cliToolsVersion = "1.82.3"
var versionCmd = &cobra.Command{
Use: "version",
Expand Down
4 changes: 2 additions & 2 deletions v3/installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ const (
var packages = map[string]packageInfo{
VerifierPackage: {
libName: "libpact_verifier_ffi",
version: "0.0.2",
version: "0.0.4",
semverRange: ">= 0.0.2, < 1.0.0",
},
MockServerPackage: {
libName: "libpact_mock_server_ffi",
version: "0.0.16",
version: "0.0.17",
semverRange: ">= 0.0.15, < 1.0.0",
},
}
Expand Down

0 comments on commit c7b7c08

Please sign in to comment.