Skip to content

Commit

Permalink
Set up Go modules.
Browse files Browse the repository at this point in the history
This should make it easier for us to reuse Go code properly.
util/fipstools is kind of a mess. runner has been using relative
imports, but Go seems to prefer this mechanism these days.

Update-Note: The import spelling in ssl/test/runner changes. Also we now
    require Go 1.11. Or you could clone us into GOPATH, but no one does
    that.

Change-Id: I8bf91e1e0345b3d0b3d17f5c642fe78b415b7dde
Reviewed-on: https://boringssl-review.googlesource.com/31884
Reviewed-by: Adam Langley <[email protected]>
  • Loading branch information
davidben authored and agl committed Sep 17, 2018
1 parent b5e4a22 commit 0990a55
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
and Clang should work on non-Windows platforms, and maybe on Windows too.
To build the tests, you also need a C++ compiler with C++11 support.

* [Go](https://golang.org/dl/) is required. If not found by CMake, the go
executable may be configured explicitly by setting `GO_EXECUTABLE`.
* The most recent stable version of [Go](https://golang.org/dl/) is required.
If not found by CMake, the go executable may be configured explicitly by
setting `GO_EXECUTABLE`.

* To build the x86 and x86\_64 assembly, your assembler must support AVX2
instructions and MOVBE. If using GNU binutils, you must have 2.22 or later
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module boringssl.googlesource.com/boringssl
2 changes: 1 addition & 1 deletion ssl/test/runner/chacha20_poly1305.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"encoding/binary"
"errors"

"./poly1305"
"boringssl.googlesource.com/boringssl/ssl/test/runner/poly1305"
)

// See RFC 7539.
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/ed25519/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"io"
"strconv"

"./internal/edwards25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519/internal/edwards25519"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/ed25519/ed25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
"testing"

"./internal/edwards25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519/internal/edwards25519"
)

type zeroReader struct{}
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/handshake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net"
"time"

"./ed25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519"
)

type clientHandshakeState struct {
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/handshake_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"math/big"
"time"

"./ed25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519"
)

// serverHandshakeState contains details of a server handshake in progress.
Expand Down
4 changes: 2 additions & 2 deletions ssl/test/runner/key_agreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"io"
"math/big"

"./curve25519"
"./ed25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/curve25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519"
)

type keyType int
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"math/big"

"./ed25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519"
)

type signer interface {
Expand Down
2 changes: 1 addition & 1 deletion ssl/test/runner/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"time"

"./ed25519"
"boringssl.googlesource.com/boringssl/ssl/test/runner/ed25519"
)

// Server returns a new TLS server side connection
Expand Down

0 comments on commit 0990a55

Please sign in to comment.