docs(time-freezing): correct the Go version claim — works on all supported Go releases#861
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the “Time Freezing” documentation across multiple versioned docs to remove an incorrect Go 1.22.x limitation and explain that the feature is enabled via the faketime build tag.
Changes:
- Replaces the “only supported till go 1.22.x” note in v2.0.0, v3.0.0, and v4.0.0 docs.
- Adds a more detailed explanation describing time freezing as build-time behavior via
-tags=faketime.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| versioned_docs/version-4.0.0/keploy-cloud/time-freezing.md | Updates the Go version compatibility note for time freezing in v4 docs. |
| versioned_docs/version-3.0.0/keploy-cloud/time-freezing.md | Updates the Go version compatibility note for time freezing in v3 docs. |
| versioned_docs/version-2.0.0/keploy-cloud/time-freezing.md | Updates the Go version compatibility note for time freezing in v2 docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ### For Golang(Go) Applications - | ||
|
|
||
| > Note: Time freezing is only supported till go **1.22.x** version. | ||
| > Note: Time freezing works on every Go version that supports the `faketime` build tag — i.e. all currently-supported Go releases. The mechanism is build-time (the `-tags=faketime` flag swaps Go's `time` package to read from a runtime agent file instead of the OS clock), so it's not tied to any specific Go version. |
| ### For Golang(Go) Applications - | ||
|
|
||
| > Note: Time freezing is only supported till go **1.22.x** version. | ||
| > Note: Time freezing works on every Go version that supports the `faketime` build tag — i.e. all currently-supported Go releases. The mechanism is build-time (the `-tags=faketime` flag swaps Go's `time` package to read from a runtime agent file instead of the OS clock), so it's not tied to any specific Go version. |
| ### For Golang(Go) Applications - | ||
|
|
||
| > Note: Time freezing is only supported till go **1.22.x** version. | ||
| > Note: Time freezing works on every Go version that supports the `faketime` build tag — i.e. all currently-supported Go releases. The mechanism is build-time (the `-tags=faketime` flag swaps Go's `time` package to read from a runtime agent file instead of the OS clock), so it's not tied to any specific Go version. |
4824e2b to
e36485c
Compare
…orted Go releases The two current time-freezing pages (versions 3.0.0 and 4.0.0) both carried the same incorrect note: > Note: Time freezing is only supported till go **1.22.x** version. That hasn't been true for a while. The mechanism is build-time — `-tags=faketime` is a Go build tag that swaps `runtime.now()` to read from the freeze-time agent file instead of the OS clock — so it applies to any Go version that supports the build tag, which is every currently-supported release. Caught when an AI agent walking the Keploy MCP onboarding flow read the existing note, propagated the false "Requires Go 1.22.x" comment into a user's Dockerfile, and rejected newer Go versions. Updating the docs so the next agent (or human) reading the page gets accurate guidance. Replacement text leans positive: states the build-tag mechanism explicitly so a reader understands why the Go-version constraint doesn't apply. Scope intentionally excludes version-2.0.0 (historical / archived docs — not surfaced as current to live readers). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
e36485c to
193064e
Compare
officialasishkumar
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The two current time-freezing pages (versions 3.0.0 and 4.0.0) both carried the same incorrect note:
That's wrong. The mechanism is build-time —
-tags=faketimeis a Go build tag that swapsruntime.now()to read from the freeze-time agent file instead of the OS clock — so it applies to any Go version that supports the build tag, which is every currently-supported release.How this surfaced
An AI agent walking the Keploy MCP onboarding flow read the existing note, propagated the false "Requires Go 1.22.x" comment into a user's Dockerfile, and would have rejected newer Go versions. Updating the docs so the next agent (or human) reading the page gets accurate guidance.
Change
One-line replacement in versions 3.0.0 and 4.0.0. New text states the build-tag mechanism explicitly so a reader understands why the Go-version constraint doesn't apply:
Version 2.0.0 is intentionally left untouched (historical / archived).
Test plan
🤖 Generated with Claude Code