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

Update go buildkite #336

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Update go buildkite #336

merged 3 commits into from
Aug 19, 2024

Conversation

moskyb
Copy link
Contributor

@moskyb moskyb commented Aug 18, 2024

This PR: Updates this tool to use the latest version of go-buildkite, v3.12. Included in this PR:

  • Changes so that this tool uses the new functional constructor
  • Removes usage of shortcutting roundtrippers for testing, and replaces them with the use of the httptest library, which is possible now that we can set the baseURL of the buildkite library!

Using roundtrippers to modify HTTP requests for testing is pretty confusing, especially when there's a great testing tool right there for us to use!

This also lets us completely remove the factory's `HttpClient` member
@moskyb moskyb force-pushed the update-go-buildkite branch from 5205cb7 to f925901 Compare August 18, 2024 23:52
@moskyb moskyb merged commit 2f6a97d into 3.x Aug 19, 2024
1 check passed
@moskyb moskyb deleted the update-go-buildkite branch August 19, 2024 02:23
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