Skip to content

golang: build fails, needs dependency update #669

Description

@a-pav

Build fails:

$ go build -v -x -o CFScanner -trimpath -ldflags "-s -w -buildid=" .
package CFScanner
        imports CFScanner/scanner
        imports CFScanner/vpn
        imports github.com/xtls/xray-core/main/json
        imports github.com/xtls/xray-core/infra/conf
        imports github.com/xtls/xray-core/proxy/wireguard
        imports gvisor.dev/gvisor/pkg/bufferv2
        imports gvisor.dev/gvisor/pkg/atomicbitops
        imports gvisor.dev/gvisor/pkg/state
        imports gvisor.dev/gvisor/pkg/state/wire
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /home/pav/0.code/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20220901235040-6ca97ef2ce1c/pkg/gohacks  

Reason:

$ grep -R "go:build"   ~/0.code/go/pkg/mod/gvisor.dev/gvisor@*/pkg/gohacks 
/home/pav/0.code/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20220901235040-6ca97ef2ce1c/pkg/gohacks/gohacks_unsafe.go://go:build go1.13 && !go1.21

I tried to bump up the xray dependency with

$ go get -v -x github.com/xtls/xray-core@latest
$ go mod tidy 

but CFScanner uses xray packages that no longer exist:

go: CFScanner/vpn imports
        github.com/xtls/xray-core/transport/internet/domainsocket: module github.com/xtls/xray-core@latest found (v1.260327.0), but does not contain package github.com/xtls/xray-core/transport/internet/domainsocket
go: CFScanner/vpn imports
        github.com/xtls/xray-core/transport/internet/headers/tls: module github.com/xtls/xray-core@latest found (v1.260327.0), but does not contain package github.com/xtls/xray-core/transport/internet/headers/tls
go: CFScanner/vpn imports
        github.com/xtls/xray-core/transport/internet/http: module github.com/xtls/xray-core@latest found (v1.260327.0), but does not contain package github.com/xtls/xray-core/transport/internet/http  

I might be able to make a PR for this eventually, but not now.

Thank you for this great scanner!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions