Skip to content

chore: add AI context tools and update go-zero to v1.9.4#103

Merged
kevwan merged 1 commit intomasterfrom
chore/update-go-zero-and-ai-tools
Feb 1, 2026
Merged

chore: add AI context tools and update go-zero to v1.9.4#103
kevwan merged 1 commit intomasterfrom
chore/update-go-zero-and-ai-tools

Conversation

@kevwan
Copy link
Contributor

@kevwan kevwan commented Feb 1, 2026

  • Add go-zero AI context and zero-skills knowledge base
  • Set up GitHub Copilot instructions for go-zero development
  • Update go-zero from v1.6.6 to v1.9.4
  • Update Go version to 1.21
  • Update dependencies to latest compatible versions

Greptile Overview

Greptile Summary

This PR enhances the repository with AI development tools and performs a significant dependency upgrade. The changes add GitHub Copilot integration via AI context submodules and update the core go-zero framework from v1.6.6 to v1.9.4, along with Go 1.21 and all transitive dependencies.

Key Changes:

  • Added two git submodules (.github/ai-context and .ai-context/zero-skills) to provide AI tools with go-zero development context and best practices
  • Created a symbolic link for GitHub Copilot instructions at .github/copilot-instructions.md
  • Upgraded go-zero from v1.6.6 to v1.9.4 (major version jump)
  • Updated Go minimum version from 1.20 to 1.21
  • Updated numerous dependencies including OpenTelemetry (v1.19.0 → v1.24.0), Prometheus (v1.18.0 → v1.21.1), Redis client (v9.5.3 → v9.17.2), and gRPC/protobuf libraries
  • Added new Grafana pyroscope profiling dependencies

Considerations:

  • The symlink path in .github/copilot-instructions.md may need verification once the submodules are initialized
  • The go-zero upgrade spans multiple minor versions and should be tested thoroughly to ensure API compatibility
  • The submodules need to be initialized (git submodule update --init --recursive) after cloning

Confidence Score: 4/5

  • This PR is relatively safe to merge with proper testing
  • The changes are primarily additive (AI context submodules) and dependency updates. While the go-zero upgrade from v1.6.6 to v1.9.4 is substantial, the codebase uses stable APIs (service, logx, redis, hash) that are unlikely to have breaking changes. The symlink path issue is minor and easily fixable. Comprehensive testing should verify compatibility.
  • .github/copilot-instructions.md needs verification once submodules are initialized; go.mod changes should be tested to ensure no API breakage

Important Files Changed

Filename Overview
.gitmodules Added two git submodules for AI context (zeromicro/ai-context and zeromicro/zero-skills)
.github/copilot-instructions.md Created symlink to ai-context/00-instructions.md for GitHub Copilot configuration
go.mod Updated Go to 1.21, go-zero from v1.6.6 to v1.9.4, and upgraded all dependencies to latest versions

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Repo as go-queue Repository
    participant GZero as go-zero v1.9.4
    participant Deps as Dependencies
    participant AI as AI Context Submodules
    
    Dev->>Repo: Update Go version to 1.21
    Dev->>Repo: Add .gitmodules file
    Dev->>AI: Reference zeromicro/ai-context submodule
    Dev->>AI: Reference zeromicro/zero-skills submodule
    Dev->>Repo: Create symlink .github/copilot-instructions.md
    Dev->>Repo: Update go.mod dependencies
    Repo->>GZero: Upgrade from v1.6.6 to v1.9.4
    GZero->>Deps: Pull in updated transitive dependencies
    Deps->>Repo: Update OpenTelemetry (v1.19.0 → v1.24.0)
    Deps->>Repo: Update Prometheus (v1.18.0 → v1.21.1)
    Deps->>Repo: Update Redis client (v9.5.3 → v9.17.2)
    Deps->>Repo: Update grpc (v1.64.0 → v1.65.0)
    Deps->>Repo: Update protobuf (v1.34.2 → v1.36.5)
    Deps->>Repo: Add Grafana pyroscope dependencies
    Dev->>Repo: Update go.sum checksums
    Note over Repo,AI: AI context provides GitHub Copilot<br/>with go-zero best practices
Loading

(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

- Add go-zero AI context and zero-skills knowledge base
- Set up GitHub Copilot instructions for go-zero development
- Update go-zero from v1.6.6 to v1.9.4
- Update Go version to 1.21
- Update dependencies to latest compatible versions
Copilot AI review requested due to automatic review settings February 1, 2026 14:02
Copy link

Copilot AI left a comment

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 updates the project's dependencies and integrates AI development tools to support go-zero development. The main focus is upgrading go-zero from v1.6.6 to v1.9.4 and updating the Go toolchain to 1.21.

Changes:

  • Upgraded go-zero framework from v1.6.6 to v1.9.4
  • Updated Go version from 1.20 to 1.21
  • Added AI context tools and GitHub Copilot configuration for go-zero development

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go.mod Updated Go version to 1.21 and upgraded go-zero to v1.9.4, along with direct and indirect dependency updates
go.sum Updated checksums for all upgraded dependencies
.gitmodules Added git submodules for AI context repositories (ai-context and zero-skills)
.github/copilot-instructions.md Added GitHub Copilot configuration file
.github/ai-context Added AI context submodule reference
.ai-context/zero-skills Added zero-skills knowledge base submodule reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

3 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@@ -0,0 +1 @@
ai-context/00-instructions.md No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Symlink path may be incorrect - points to ai-context/00-instructions.md but should likely be .github/ai-context/00-instructions.md (absolute path) or adjust depending on where the file exists in the ai-context submodule

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/copilot-instructions.md
Line: 1:1

Comment:
Symlink path may be incorrect - points to `ai-context/00-instructions.md` but should likely be `.github/ai-context/00-instructions.md` (absolute path) or adjust depending on where the file exists in the ai-context submodule

How can I resolve this? If you propose a fix, please make it concise.

@kevwan kevwan merged commit afd6f3b into master Feb 1, 2026
7 of 8 checks passed
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.

1 participant