Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rust FFI #3.4: Make tag optional #298

Closed

Conversation

tienvx
Copy link
Contributor

@tienvx tienvx commented Mar 6, 2023

Depend on #280

@tienvx tienvx force-pushed the use-rust-ffi-make-tag-optional branch from c9f2d3a to 01b069c Compare March 6, 2023 16:57
Comment on lines -76 to -77
} elseif (!($tag = \getenv('PACT_CONSUMER_TAG'))) {
print 'PACT_CONSUMER_TAG environment variable was not set. Skipping PACT file upload.';
Copy link
Contributor Author

@tienvx tienvx Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tag is not required for pact-broker publish command. See #280 (comment)

@@ -95,7 +95,6 @@ public function endTestSuite(TestSuite $suite): void
}

$broker = new Broker($brokerConfig);
$broker->createVersionTag();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because:

  1. Tag will be created by $broker->publish(); line below if provided.
  2. If the the version of consumer didn't exist in Pact Broker before, this line will cause this error:
Could not create tag. Version [VERSION_HERE] of [CONSUMER_NAME_HERE] does not exist.

@tienvx
Copy link
Contributor Author

tienvx commented Mar 13, 2023

Close because it conflict with #302

@tienvx tienvx closed this Mar 13, 2023
@tienvx tienvx deleted the use-rust-ffi-make-tag-optional branch September 24, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant