mirror of
https://github.com/amnezia-vpn/amnezia-libxray.git
synced 2026-10-13 21:33:23 +00:00
[PR #3] [MERGED] chore: use canonical Xray module path #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amnezia-libxray#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amnezia-libxray/pull/3
Author: @FrogRocky
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @FrogRocky
Base:
main← Head:frog/replace-xray-module📝 Commits (1)
0c352e2chore: update xray module path📊 Changes
10 files changed (+118 additions, -92 deletions)
View changed files
📝
build.sh(+8 -8)📝
controller_android.go(+1 -1)📝
go.mod(+26 -16)📝
go.sum(+62 -46)📝
xray/geo.go(+6 -6)📝
xray/geo_cut.go(+9 -9)📝
xray/stats.go(+1 -1)📝
xray/uuid.go(+1 -1)📝
xray/xray.go(+3 -3)📝
xray_wrapper_android.go(+1 -1)📄 Description
Summary
github.com/xtls/xray-coremodule pathv1.260707.0and replace it withgithub.com/amnezia-vpn/amnezia-xray-core v1.260707.0common/geodatain the new Xray versiongo.modandgo.sumduring buildsgomobile/gobind, failing on errors, and passing the linker flag required byaneton Go 1.23+Why
The Amnezia Xray fork now declares the canonical
github.com/xtls/xray-coremodule path. Keeping fork-path imports would makego mod tidyrestore the old module dependency and conflict with the intendedrequire/replacesetup.The build script also recreated module files on every run, which discarded the checked-in replacement. Xray
v1.260707.0additionally moved geodata protobuf types and introduced an Android dependency ongithub.com/wlynxg/anet, which requires-checklinkname=0with current Go toolchains.Validation
go mod tidy -diffgo mod verifygo test ./...go vet ./..../build.sh android(AAR with armeabi-v7a, arm64-v8a, x86, and x86_64)./build.sh apple(iOS device, iOS simulator, and macOS XCFramework slices)build.sh,go.mod, andgo.sumremain unchanged after both mobile buildsFollow-ups
After merge, tag the next package release (expected
v1.0.1) and update theamnezia-clientConan recipe version, source tag/URL, and SHA-256.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.