Skip to content

Commit d987e9b

Browse files
authored
Merge pull request #12 from YOU54F/feat/remove_rust_tools
feat!: remove rust tools
2 parents 4e90eca + 591cdd5 commit d987e9b

8 files changed

Lines changed: 10 additions & 303 deletions

File tree

README.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
Creates a standalone pact command line executable containing
66

7-
- The rust pact implementation via cargo executables
87
- The ruby pact implementation via Traveling Ruby
98

109
## Package contents
@@ -17,26 +16,17 @@ This version (2.5.12) of the Pact standalone executables package contains:
1716
* pact-provider-verifier gem 1.39.1
1817
* pact_broker-client gem 1.77.0
1918
* pact-message gem 0.11.1
20-
* [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli)
21-
* [pact-stub-server](https://github.com/pact-foundation/pact-stub-server)
22-
* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
23-
* [pact-plugin-cli](https://github.com/pact-foundation/pact-plugins/tree/main/cli)
2419

2520
Binaries will be extracted into `pact/bin`:
2621

2722
```
2823
./pact/bin/
29-
├── pact (central entry point to all binaries)
3024
├── pact-broker
3125
├── pactflow
32-
├── pact_mock_server_cli
33-
├── pact-stub-server
34-
├── pact_verifier_cli
35-
├── pact-plugin-cli
36-
├── pact-message (legacy)
37-
├── pact-mock-service (legacy)
38-
├── pact-provider-verifier (legacy)
39-
└── pact-stub-service (legacy)
26+
├── pact-message
27+
├── pact-mock-service
28+
├── pact-provider-verifier
29+
└── pact-stub-service
4030
```
4131

4232
### Windows Users
@@ -49,14 +39,6 @@ eg.
4939
.\pact\bin\pact-broker.bat
5040
```
5141

52-
Please append `.exe` to any of the provided rust based binaries
53-
54-
eg.
55-
56-
```ps1
57-
.\pact\bin\pact_mock_server_cli.exe
58-
```
59-
6042
## Installation
6143

6244
See the [release page][releases].

packaging/README.md.template

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
Creates a standalone pact command line executable containing
66

7-
- The rust pact implementation via cargo executables
87
- The ruby pact implementation via Traveling Ruby
98

109
## Package contents
@@ -17,26 +16,17 @@ This version (<%= ENV.fetch('VERSION') %>) of the Pact standalone executables pa
1716
* pact-provider-verifier gem <%= Pact::ProviderVerifier::VERSION %>
1817
* pact_broker-client gem <%= PactBroker::Client::VERSION %>
1918
* pact-message gem <%= Pact::Message::VERSION %>
20-
* [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli)
21-
* [pact-stub-server](https://github.com/pact-foundation/pact-stub-server)
22-
* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
23-
* [pact-plugin-cli](https://github.com/pact-foundation/pact-plugins/tree/main/cli)
2419

2520
Binaries will be extracted into `pact/bin`:
2621

2722
```
2823
./pact/bin/
29-
├── pact (central entry point to all binaries)
3024
├── pact-broker
3125
├── pactflow
32-
├── pact_mock_server_cli
33-
├── pact-stub-server
34-
├── pact_verifier_cli
35-
├── pact-plugin-cli
36-
├── pact-message (legacy)
37-
├── pact-mock-service (legacy)
38-
├── pact-provider-verifier (legacy)
39-
└── pact-stub-service (legacy)
26+
├── pact-message
27+
├── pact-mock-service
28+
├── pact-provider-verifier
29+
└── pact-stub-service
4030
```
4131

4232
### Windows Users
@@ -49,14 +39,6 @@ eg.
4939
.\pact\bin\pact-broker.bat
5040
```
5141

52-
Please append `.exe` to any of the provided rust based binaries
53-
54-
eg.
55-
56-
```ps1
57-
.\pact\bin\pact_mock_server_cli.exe
58-
```
59-
6042
## Installation
6143

6244
See the [release page][releases].

packaging/pact.bat

Lines changed: 0 additions & 20 deletions
This file was deleted.

packaging/pact.rb

Lines changed: 0 additions & 92 deletions
This file was deleted.

packaging/pact.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

script/test.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,19 @@ if [ "$BINARY_OS" != "windows" ] ; then PATH_SEPERATOR=/ ; else PATH_SEPERATOR=\
4040
PATH_TO_BIN=.${PATH_SEPERATOR}pkg${PATH_SEPERATOR}pact${PATH_SEPERATOR}bin${PATH_SEPERATOR}
4141

4242
tools=(
43-
pact
4443
pact-broker
4544
pact-message
4645
pact-mock-service
4746
pact-provider-verifier
4847
pact-stub-service
4948
pactflow
50-
pact-plugin-cli
51-
pact-stub-server
52-
pact_verifier_cli
53-
pact_mock_server_cli
5449
)
5550

5651
test_cmd=""
5752
for tool in ${tools[@]}; do
5853
echo testing $tool
5954
if [ "$BINARY_OS" = "windows" ] ; then FILE_EXT=.bat; fi
60-
if [ "$BINARY_OS" = "windows" ] && ([ "$tool" = "pact-plugin-cli" ] || [ "$tool" = "pact-stub-server" ] || [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact_mock_server_cli" ]) ; then FILE_EXT=.exe ; fi
61-
if [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
55+
if [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
6256
echo executing ${tool}${FILE_EXT}
6357
${PATH_TO_BIN}${tool}${FILE_EXT} ${test_cmd};
6458
done

script/unpack-and-test.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,19 @@ if [ "$BINARY_OS" != "windows" ] ; then PATH_SEPERATOR=/ ; else PATH_SEPERATOR=\
4949
PATH_TO_BIN=.${PATH_SEPERATOR}pact${PATH_SEPERATOR}bin${PATH_SEPERATOR}
5050

5151
tools=(
52-
pact
5352
pact-broker
5453
pact-message
5554
pact-mock-service
5655
pact-provider-verifier
5756
pact-stub-service
5857
pactflow
59-
pact-plugin-cli
60-
pact-stub-server
61-
pact_verifier_cli
62-
pact_mock_server_cli
6358
)
6459

6560
test_cmd=""
6661
for tool in ${tools[@]}; do
6762
echo testing $tool
6863
if [ "$BINARY_OS" = "windows" ] ; then FILE_EXT=.bat; fi
69-
if [ "$BINARY_OS" = "windows" ] && ([ "$tool" = "pact-plugin-cli" ] || [ "$tool" = "pact-stub-server" ] || [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact_mock_server_cli" ]) ; then FILE_EXT=.exe ; fi
70-
if [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
64+
if [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
7165
echo executing ${tool}${FILE_EXT}
7266
${PATH_TO_BIN}${tool}${FILE_EXT} ${test_cmd};
7367
done

0 commit comments

Comments
 (0)