Skip to content

Conversation

@dsymonds
Copy link
Contributor

The package under pkg/clock is github.com/benbjohnson/clock, which is archived. It's also way more complex than is what is actually needed here, so we can entirely remove the dependency and remove the helper package.

Fixes #2840.

@dsymonds dsymonds requested a review from a team as a code owner October 25, 2025 00:37
@github-actions github-actions bot added dependencies Pull requests that update a dependency file go tests provider labels Oct 25, 2025
@dsymonds
Copy link
Contributor Author

@tuunit, ready for your review!

Copy link
Member

@tuunit tuunit left a comment

Choose a reason for hiding this comment

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

@dsymonds this looks great! Just one nitpick regarding the most difficult of all things: Variable naming 😅

Furthermore, please add a changelog entry :)

@dsymonds
Copy link
Contributor Author

Struct field renamed, and changelog entry added.

@tuunit
Copy link
Member

tuunit commented Oct 28, 2025

@dsymonds please resolve the conflict in changelog.md :)

The package under pkg/clock is github.com/benbjohnson/clock, which is
archived. It's also way more complex than is what is actually needed
here, so we can entirely remove the dependency and remove the helper
package.

Fixes oauth2-proxy#2840.

Signed-off-by: David Symonds <dsymonds@gmail.com>
@dsymonds
Copy link
Contributor Author

@dsymonds please resolve the conflict in changelog.md :)

Things change quickly! Pulled and resolved.

@tuunit tuunit merged commit 110d51d into oauth2-proxy:master Oct 28, 2025
4 checks passed
@dsymonds dsymonds deleted the clock-free branch October 28, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file docs go provider tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC]: Replace archived clock library for mocking and testing

2 participants