fix: 更新版本#42
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s Go/dependency/tooling versions and adapts the sign-server integration/config to newer LagrangeGo signing API expectations (including per-server token support), plus a few small refactors/logic simplifications.
Changes:
- Bump Go version (workflows +
go.mod) and upgrade multiple dependencies (notably LagrangeGo). - Extend sign-server configuration to support
token, and update the signing request/flow accordingly. - Small code cleanups in message parsing, CQ code handling, and formatter selection; update golangci-lint configuration/workflow.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
modules/filter/filter.go |
Simplifies neq evaluation logic. |
modules/config/default_config.yml |
Updates default sign-server endpoint and adds token fields; clarifies uin comment. |
modules/config/config.go |
Adds Token to SignServer YAML model. |
internal/msg/parse.go |
Refactors CQ marker scan condition for readability. |
go.mod |
Bumps Go version and updates required module versions. |
go.sum |
Updates sums to match dependency upgrades. |
coolq/event.go |
Uses switch for post-format selection. |
coolq/cqcode.go |
Comment spacing + simplifies cache condition logic. |
cmd/gocq/sign.go |
Updates signer/sign request schema, adds Authorization header support, removes/parks quality-test logic. |
cmd/gocq/main.go |
Updates default protocol version key and client init/sign-server wiring. |
.golangci.yml |
Migrates to golangci-lint config v2 and enables formatters/exclusions structure. |
.github/workflows/release.yml |
Updates CI Go version to 1.25. |
.github/workflows/golint.yml |
Updates CI Go version to 1.25 and bumps golangci-lint action major version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
203
to
+207
| err = json.NewDecoder(resp.Body).Decode(&signResp) | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| if signResp.Code != 0 { |
Comment on lines
+214
to
216
| app := auth.AppList["linux"]["3.2.26-46494"] | ||
| log.Infof("使用协议: %s", app.CurrentVersion) | ||
| cli = newClient(app) |
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.
No description provided.