This repository was archived by the owner on May 13, 2026. It is now read-only.
Add cmd/infinite-go: serve Go package with PullTime via git#2
Merged
Conversation
Refactor infinite-git to support pluggable content generation: - Extract ContentProvider interface (InitialFiles, GenerateFiles, CommitMessage) - Make repo.New accept initial files map instead of hardcoding content - Move infinite-git to cmd/infinite-git with gitContent provider - Add cmd/infinite-go that serves a Go module where each pull generates a new version with PullTime set to the pull timestamp - Include ?go-get=1 discovery middleware for Go module resolution https://claude.ai/code/session_01HpvELk7HnbJoXEUjqHP7SU
Replace the go-git library tests with tests that shell out to `git clone` and `git pull`, then verify each clone/pull produces a compilable Go package with a unique PullTime. This more closely simulates the real `go get @latest` with GOPROXY=direct flow. - TestGoGet: 3 fresh clones, each builds and has unique PullTime - TestGoGetPull: clone then 3 pulls, each builds and updates PullTime - TestGoGetDiscovery: ?go-get=1 returns correct go-import meta tag https://claude.ai/code/session_01HpvELk7HnbJoXEUjqHP7SU
Add TestGoGetE2E that binds to 127.0.0.1:80 and runs real `go get 127.0.0.1@latest` against the server. Each iteration uses a fresh module cache and verifies it gets a unique PullTime. Skips gracefully when :80 can't be bound. https://claude.ai/code/session_01HpvELk7HnbJoXEUjqHP7SU
TestGoGet (3 independent clones) is strictly weaker than both TestGoGetE2E (real go get) and TestGoGetPull (clone + pulls with go build verification). Remove it to reduce duplication. Remaining tests: - TestGoGetE2E: real `go get` on :80 (skips without privileges) - TestGoGetPull: git clone + pull fallback (always runs) - TestGoGetDiscovery: ?go-get=1 meta tag https://claude.ai/code/session_01HpvELk7HnbJoXEUjqHP7SU
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Refactor infinite-git to support pluggable content generation:
a new version with PullTime set to the pull timestamp
https://claude.ai/code/session_01HpvELk7HnbJoXEUjqHP7SU