Skip to content

Commit

Permalink
FAB-5925 Compile fabric-ca with Go 1.9
Browse files Browse the repository at this point in the history
Compiling with Go 1.9 required updating
the vendored version of cfssl and
related packages.

Change-Id: I75dc0da0ebdca1ca07dc95309543682fd186471c
Signed-off-by: Gari Singh <[email protected]>
  • Loading branch information
mastersingh24 committed Sep 19, 2017
1 parent 11ca4d3 commit 27b9697
Show file tree
Hide file tree
Showing 2,687 changed files with 23,263 additions and 435,932 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See [User's Guide for Fabric CA](https://hyperledger-fabric-ca.readthedocs.io) f

## Prerequisites

* Go 1.7+ installation or later
* Go 1.9+ installation or later
* **GOPATH** environment variable is set correctly
* docker version 17.03 or later
* docker-compose version 1.11 or later
Expand All @@ -21,10 +21,10 @@ The following are guidelines to follow when contributing:

1. See the general information about [contributing to fabric](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html).

2. To set up your development environment for doing common development tasks, see [bash_profile](https://github.com/hyperledger/fabric-ca/blob/master/scripts/bash_profile). This contains variables and functions which can be copied directly into your `.bash_profile` file. Even if you do not use bash, you should still find the functions instructive. For example:
a. **clone** - pulls the latest fabric-ca code from gerrit and places it based on your GOPATH setting
b. **cdr** - cd to the fabric-ca repository root, which is equivalent to "cd $GOPATH/src/github.com/hyperledger/fabric-ca"
c. **gencov** - generates a test coverage report
2. To set up your development environment for doing common development tasks, see [bash_profile](https://github.com/hyperledger/fabric-ca/blob/master/scripts/bash_profile). This contains variables and functions which can be copied directly into your `.bash_profile` file. Even if you do not use bash, you should still find the functions instructive. For example:
a. **clone** - pulls the latest fabric-ca code from gerrit and places it based on your GOPATH setting
b. **cdr** - cd to the fabric-ca repository root, which is equivalent to "cd $GOPATH/src/github.com/hyperledger/fabric-ca"
c. **gencov** - generates a test coverage report

3. To run the unit tests manually:

Expand Down Expand Up @@ -58,9 +58,9 @@ The following are guidelines to follow when contributing:

1. **cmd/fabric-ca-server** contains the main for the fabric-ca-server command.
2. **cmd/fabric-ca-client** contains the main for the fabric-ca-client command.
3. **lib** contains most of the code.
a) **server.go** contains the main Server object, which is configured by **serverconfig.go**.
b) **client.go** contains the main Client object, which is configured by **clientconfig.go**.
3. **lib** contains most of the code.
a) **server.go** contains the main Server object, which is configured by **serverconfig.go**.
b) **client.go** contains the main Client object, which is configured by **clientconfig.go**.
4. **lib/csp** contains some functions related to the Crypto Service Provider.
5. **lib/dbutil** contains database utility functions.
6. **lib/ldap** contains LDAP client code.
Expand Down Expand Up @@ -95,7 +95,7 @@ In other window, you can start profiling by running (assuming load test takes ab
then analyze the profile:

`go tool pprof bin/fabric-ca-server load-cpu.prof`

OR simply run:

`go tool pprof -seconds=60 -output=load-cpu.prof http://localhost:8054/debug/pprof/profile`
Expand Down Expand Up @@ -125,7 +125,7 @@ See [FVT tests](scripts/fvt/README.md) for information on functional verificatio


### Updating the cfssl vendored package
Following are the steps to update cfssl package using version 1.0.8 of govendor tool.
Following are the steps to update cfssl package using version 1.0.8 of govendor tool.

* Remove cfssl from vendor folder
* cd $GOPATH/src/github.com/hyperledger/fabric-ca/vendor
Expand Down
2 changes: 1 addition & 1 deletion docs/source/users-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Getting Started
Prerequisites
~~~~~~~~~~~~~~~

- Go 1.7.x installation
- Go 1.9+ installation
- ``GOPATH`` environment variable is set correctly
- libtool and libtdhl-dev packages are installed

Expand Down
38 changes: 0 additions & 38 deletions vendor/github.com/cloudflare/cfssl/BUILDING.md

This file was deleted.

72 changes: 0 additions & 72 deletions vendor/github.com/cloudflare/cfssl/CHANGELOG

This file was deleted.

16 changes: 0 additions & 16 deletions vendor/github.com/cloudflare/cfssl/Dockerfile

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 27b9697

Please sign in to comment.