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

Canonicalise empty plugin configs to nil #49

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Sep 5, 2024

Some empty plugin configs (e.g. foo: {}) are sneaking through. When returned from Buildkite these are generally null, so let's canonicalise them that way.

@DrJosh9000 DrJosh9000 requested a review from wolfeidau September 5, 2024 01:50
Copy link
Contributor

@wolfeidau wolfeidau left a comment

Choose a reason for hiding this comment

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

👍🏻 nice, I think handling this here is a good fail safe.

@DrJosh9000 DrJosh9000 merged commit b236161 into main Sep 5, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the plugin-config-empty-nil branch September 5, 2024 02:02
steveh added a commit to buildkite/terraform-provider-buildkite that referenced this pull request Nov 18, 2024
v0.13.1 contains a [fix](buildkite/go-pipeline#49) for how plugin config is canonicalized.

Ran `go get -u github.com/buildkite/[email protected]` and fixed compilation errors.

Fixes PS-193
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.

2 participants