Giter Site home page Giter Site logo

Comments (5)

gaukas avatar gaukas commented on June 18, 2024 1

crypto/ecdh is added in Go 1.20. And that is the reason why uTLS requires a minimal version of Go 1.20+.

from utls.

cosad3s avatar cosad3s commented on June 18, 2024 1

You're right @gaukas , last version of Go installed from apk for Alpine Linux is go version go1.19.9 linux/amd64.
So I think this issue can be closed as the prerequisites are not meet.

Thanks @zedifen , but I still got an error in my environment root/go/pkg/mod/github.com/refraction-networking/[email protected]/cfkem.go:25:2: package crypto/ecdh is not in GOROOT (/usr/lib/go/src/crypto/ecdh). But anyway, I will get the last Go binary instead of the package from Alpine repository.

from utls.

zedifen avatar zedifen commented on June 18, 2024 1

Glad the issue is solved! Just for everyone's information, I searched for alpine Docker image and saw this page https://hub.docker.com/_/alpine. Looks like the latest alpine is 3.18.4.

And it turns out that my alpine is on edge branch of package repositories. I got Go 1.21.4 from there.

I also searched for go in alpine package repositories site and it seems it has Go 1.20 on v3.18 branch, while it's Go 1.19 on v3.17 branch. By the way, they are all under community repository.

Sorry that I'm not running Docker, so I'm not sure what's in your /etc/apk/repositories. Please check it if you'd like. 😊

from utls.

zedifen avatar zedifen commented on June 18, 2024

May I know the purpose of go installing github.com/refraction-networking/utls in the Dockerfile?

from utls.

zedifen avatar zedifen commented on June 18, 2024

I just start an alpine distro with proot-distro on termux with:

apk update
apk upgrade
apk add go
CGO_ENABLED=0 go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
~/go/bin/subfinder --version

and it seems to work fine.

Maybe there's no need to go install this dependency explicitly. And please try go build without CGO_ENABLED=0 and only add it back if things are broken.

Here's also Go's documentation on dependency-related commands: https://pkg.go.dev/cmd/go#hdr-Add_dependencies_to_current_module_and_install_them.

from utls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.