Skip to content

xgo v1.7.1#88

Merged
xushiwei merged 2 commits intogoplus:mainfrom
xushiwei:q
Apr 28, 2026
Merged

xgo v1.7.1#88
xushiwei merged 2 commits intogoplus:mainfrom
xushiwei:q

Conversation

@xushiwei
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

@fennoai fennoai Bot left a comment

Choose a reason for hiding this comment

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

This PR migrates the project from goplus/gop to goplus/xgo v1.7.1. The core dependency and command-line changes are consistent and correct. A few issues to address:

Comment thread README.md
@@ -3,7 +3,7 @@
[![Build Status](https://github.com/goplus/tutorial/actions/workflows/gop.yml/badge.svg)](https://github.com/goplus/tutorial/actions/workflows/gop.yml)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The Build Status badge URL and its link still reference the old gop.yml workflow path, which no longer exists after the rename to xgo.yml. Both the badge image src and the anchor href will be broken.

Suggested change
[![Build Status](https://github.com/goplus/tutorial/actions/workflows/gop.yml/badge.svg)](https://github.com/goplus/tutorial/actions/workflows/gop.yml)
[![Build Status](https://github.com/goplus/tutorial/actions/workflows/xgo.yml/badge.svg)](https://github.com/goplus/tutorial/actions/workflows/xgo.yml)

Comment thread .github/workflows/xgo.yml
gop-version: "main"
go-version: "1.24"
xgo-version: "main"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

xgo-version: "main" pins to the live HEAD of the upstream main branch. This means every CI run pulls whatever commit exists at that moment — a compromised or breaking upstream push will silently affect all runs here with no change to this repo. It also prevents the setup action from caching the toolchain binary.

Consider pinning to the specific release tag that matches go.mod, e.g.:

Suggested change
xgo-version: "v1.7.1"

Comment thread .github/workflows/xgo.yml
@@ -1,5 +1,5 @@
# This workflow will build a goplus project
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This comment still says goplus project — worth updating to XGo project for consistency with the migration.

Suggested change
# This workflow will build a goplus project
# This workflow will build an XGo project

Comment thread .github/workflows/xgo.yml
@@ -14,16 +14,16 @@ jobs:
steps:
- uses: actions/checkout@v3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

actions/checkout@v3 uses the Node 16 runtime which is end-of-life. Since the workflow is receiving maintenance in this PR, @v4 (Node 20) is worth picking up at the same time.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the project's Go version to 1.24.0 and migrates the dependency from github.com/goplus/gop to github.com/goplus/xgo v1.7.1, including corresponding updates to the README and import paths. I have reviewed the changes and identified a critical issue: the go.mod and go.sum files are currently out of sync, likely due to missing go mod tidy execution. This will cause build failures in clean environments, and you must regenerate these files to include all necessary indirect dependencies and checksums.

Comment thread go.mod
Comment on lines +3 to +6
go 1.24.0

require (
github.com/goplus/gop v1.2.5
github.com/goplus/xgo v1.7.1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The go.mod and go.sum files appear to be out of sync. After updating the Go version and the xgo dependency, it is necessary to run go mod tidy. The current go.sum is missing many indirect dependencies (e.g., golang.org/x/mod which is required by github.com/goplus/mod), and go.mod is missing the // indirect block that Go 1.17+ automatically maintains. This will likely cause build failures in clean environments where these checksums are missing.

@xushiwei xushiwei merged commit 100366d into goplus:main Apr 28, 2026
1 check 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