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

tris: remove github.com/cloudflare/go #61

Merged
merged 3 commits into from
Feb 14, 2018

Conversation

FiloSottile
Copy link
Contributor

Over time the amount of custom Go patches reduced, and tris got less
tangled to the underlying Go. Finally sever the link.

This allows more flexibility in what base Go is used (the system one),
doesn't require coordinating two repositories, and simplifies the black
magic considerably.

Make sure to use tris with Go 1.9 or higher.

FiloSottile added a commit to FiloSottile/go-libp2p-conn that referenced this pull request Dec 21, 2017
Packages MUST be vendored together so that they all share the same
golang_org/x/crypto/ed25519 types, and so that they replace the stdlib
ones. cgo is disabled to avoid symbols clashing at link stage.

crypto/internal/cipherhw
golang_org/x/crypto/...
crypto/x509
	Go 9c64c65d0e
	+ crypto/x509: add support for Ed25519 certificates
	  golang/go@master...FiloSottile:filippo/ed25519
	+ disabled cgo
	  (see below)

crypto/tls
	tls-tris 8db4726
	+ Ed25519 certificates
	  cloudflare/tls-tris#62
	+ tris: remove github.com/cloudflare/go
	  cloudflare/tls-tris#61

---

diff --git a/src/crypto/x509/root_cgo_darwin.go b/src/crypto/x509/root_cgo_darwin.go
index 80cd2501c4..8aae8da491 100644
--- a/src/crypto/x509/root_cgo_darwin.go
+++ b/src/crypto/x509/root_cgo_darwin.go
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.

-// +build cgo,!arm,!arm64,!ios
+// +build ignore

 package x509

diff --git a/src/crypto/x509/root_nocgo_darwin.go b/src/crypto/x509/root_nocgo_darwin.go
index 2ac4666aff..7cf95b5844 100644
--- a/src/crypto/x509/root_nocgo_darwin.go
+++ b/src/crypto/x509/root_nocgo_darwin.go
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.

-// +build !cgo
-
 package x509

 func loadSystemRoots() (*CertPool, error) {
FiloSottile added a commit to FiloSottile/go-libp2p-conn that referenced this pull request Dec 21, 2017
Packages MUST be vendored together so that they all share the same
golang_org/x/crypto/ed25519 types, and so that they replace the stdlib
ones. cgo is disabled to avoid symbols clashing at link stage.

crypto/internal/cipherhw
golang_org/x/crypto/...
crypto/x509
	Go 9c64c65d0e
	+ crypto/x509: add support for Ed25519 certificates
	  golang/go@master...FiloSottile:filippo/ed25519
	+ disabled cgo
	  (see below)

crypto/tls
	tls-tris 8db4726
	+ Ed25519 certificates
	  cloudflare/tls-tris#62
	+ tris: remove github.com/cloudflare/go
	  cloudflare/tls-tris#61

---

diff --git a/src/crypto/x509/root_cgo_darwin.go b/src/crypto/x509/root_cgo_darwin.go
index 80cd2501c4..8aae8da491 100644
--- a/src/crypto/x509/root_cgo_darwin.go
+++ b/src/crypto/x509/root_cgo_darwin.go
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.

-// +build cgo,!arm,!arm64,!ios
+// +build ignore

 package x509

diff --git a/src/crypto/x509/root_nocgo_darwin.go b/src/crypto/x509/root_nocgo_darwin.go
index 2ac4666aff..7cf95b5844 100644
--- a/src/crypto/x509/root_nocgo_darwin.go
+++ b/src/crypto/x509/root_nocgo_darwin.go
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.

-// +build !cgo
-
 package x509

 func loadSystemRoots() (*CertPool, error) {
Over time the amount of custom Go patches reduced, and tris got less
tangled to the underlying Go. Finally sever the link.

This allows more flexibility in what base Go is used (the system one),
doesn't require coordinating two repositories, and simplifies the black
magic considerably.

Make sure to use tris with Go 1.9.X.
@FiloSottile
Copy link
Contributor Author

CI now passing, bump.

Copy link
Contributor

@Lekensteyn Lekensteyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this simplification.

@Lekensteyn Lekensteyn merged commit a982da0 into cloudflare:master Feb 14, 2018
@FiloSottile FiloSottile deleted the filippo/nofork branch February 18, 2018 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants