Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Go Build Documentation #2463

Closed
arky opened this issue Apr 22, 2023 · 2 comments · Fixed by ooni/probe-cli#1157
Closed

Improve Go Build Documentation #2463

arky opened this issue Apr 22, 2023 · 2 comments · Fixed by ooni/probe-cli#1157
Assignees
Labels
bug Something isn't working triage

Comments

@arky
Copy link

arky commented Apr 22, 2023

Describe the bug

OONI doesn't compile with latest go version 1.20. You'll have use a specific version ( See #2436 ) to able build ooni tools.

It is good to document how to install the required version of Go and using it to build the tool using the installed version of go

Install 1.19X version

$ go install golang.org/dl/go1.19.6@latest


$ ~/go/bin/go1.19.6 download

Build with specific version of go

$ ~/sdk/go1.19.6/bin/go build -v -ldflags '-s -w' ./cmd/ooniprobe


$ ~/sdk/go1.19.6/bin/go build -v -ldflags '-s -w' ./internal/cmd/miniooni

$  ~/sdk/go1.19.6/bin/go build -ldflags '-s -w' ./internal/cmd/oohelperd

To Reproduce

Steps to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information (please complete the following information):

  • Device: [e.g., iPhone6]
  • OS: [e.g., iOS8.1]
  • OONI Probe version: [e.g., 3.11.0]

Additional context

Add any other context about the problem here.

@arky arky added bug Something isn't working triage labels Apr 22, 2023
@arky
Copy link
Author

arky commented May 1, 2023

Another option is to use 'gvm' command.

$ go install github.com/andrewkroh/gvm/cmd/gvm@v0.5.0

$ go install 1. 19.6 

Thanks @aanorbel for the tip.

@arky
Copy link
Author

arky commented Jun 9, 2023

Thank you @bassosimone

cyBerta pushed a commit to cyBerta/probe-cli that referenced this issue Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants