fix: support Go 1.21 and normalize module path to lowercase#2
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes CI failures and module path case sensitivity issues by downgrading from Go 1.25.0 (a non-existent version) to Go 1.21.0 and normalizing the module path from github.com/Miss-you/codetok to github.com/miss-you/codetok. The changes ensure broader Go compatibility and resolve module path conflicts for users.
Changes:
- Downgraded Go version from 1.25.0 to 1.21.0 in go.mod for broader compatibility
- Normalized module path to lowercase (
github.com/miss-you/codetok) throughout codebase - Reformatted imports in cmd files to comply with goimports local-prefixes configuration
- Updated documentation and added case-sensitivity notes for users
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Changed module path to lowercase and Go version from 1.25.0 to 1.21.0 |
| main.go | Updated import path to lowercase module name |
| cmd/session.go | Updated imports to lowercase and reformatted per goimports rules |
| cmd/daily.go | Updated imports to lowercase and reformatted per goimports rules |
| stats/aggregator.go | Updated import path to lowercase |
| stats/aggregator_test.go | Updated import path to lowercase |
| provider/claude/parser.go | Updated import path to lowercase |
| provider/codex/parser.go | Updated import path to lowercase |
| provider/kimi/parser.go | Updated import path to lowercase |
| e2e/e2e_test.go | Updated import path to lowercase |
| README.md | Updated all references to lowercase module path, Go version badge, and added case-sensitivity note |
| README_zh.md | Updated all references to lowercase module path, Go version badge, and added case-sensitivity note (Chinese) |
| CLAUDE.md | Updated import example to lowercase module path |
| Makefile | Updated MODULE variable to lowercase |
| .golangci.yml | Updated local-prefixes to lowercase module path |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
github.com/miss-you/codetokWhy
go installconflict when using lowercase module path due to case mismatch ingo.modValidation
go test ./...passedgolangci-lint v1.64.8 runpassed