Update builds to Go 1.13 as this is required for TLS (apparently golang.org/x/crypto/ed25519 is not acceptable to the crypto/tls module and this prevents Yggdrasil from starting)

This commit is contained in:
Neil Alexander 2019-10-24 09:28:09 +01:00
parent c3dee478f5
commit d58f88d29a
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
4 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ version: 2.1
jobs: jobs:
build-linux: build-linux:
docker: docker:
- image: circleci/golang:1.12.7 - image: circleci/golang:1.13.3
steps: steps:
- checkout - checkout

View File

@ -49,7 +49,7 @@ You may also find other platform-specific wrappers, scripts or tools in the
If you want to build from source, as opposed to installing one of the pre-built If you want to build from source, as opposed to installing one of the pre-built
packages: packages:
1. Install [Go](https://golang.org) (requires Go 1.12 or later) 1. Install [Go](https://golang.org) (requires Go 1.13 or later)
2. Clone this repository 2. Clone this repository
2. Run `./build` 2. Run `./build`

2
go.mod
View File

@ -17,3 +17,5 @@ require (
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
golang.org/x/text v0.3.2 golang.org/x/text v0.3.2
) )
go 1.13

View File

@ -2,6 +2,7 @@ package yggdrasil
import ( import (
"bytes" "bytes"
"crypto/ed25519"
"crypto/rand" "crypto/rand"
"crypto/tls" "crypto/tls"
"crypto/x509" "crypto/x509"
@ -12,8 +13,6 @@ import (
"math/big" "math/big"
"net" "net"
"time" "time"
"golang.org/x/crypto/ed25519"
) )
type tcptls struct { type tcptls struct {