Skip to content

fix: support Go 1.21 and normalize module path to lowercase#2

Merged
Miss-you merged 3 commits into
mainfrom
fix/go121-compat-lint
Feb 18, 2026
Merged

fix: support Go 1.21 and normalize module path to lowercase#2
Miss-you merged 3 commits into
mainfrom
fix/go121-compat-lint

Conversation

@Miss-you

@Miss-you Miss-you commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • downgrade Go version to 1.21 for broader compatibility
  • fix CI lint compatibility by keeping golangci-lint v1 flow and formatting imports
  • normalize module path to lowercase: github.com/miss-you/codetok
  • update docs/install commands and add case-sensitivity note in README/README_zh

Why

  • CI failed because golangci-lint built with lower Go version could not target Go 1.25
  • users hit go install conflict when using lowercase module path due to case mismatch in go.mod

Validation

  • go test ./... passed
  • golangci-lint v1.64.8 run passed

Copilot AI review requested due to automatic review settings February 17, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@Miss-you Miss-you left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lgtm

@Miss-you
Miss-you merged commit 14271b5 into main Feb 18, 2026
6 checks passed
@Miss-you
Miss-you deleted the fix/go121-compat-lint branch February 18, 2026 01:39
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