Skip to content

Commit 59a959e

Browse files
authored
v6.12.0
v6.12.0
2 parents 6f3128e + 18f78d1 commit 59a959e

File tree

194 files changed

+10749
-5380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+10749
-5380
lines changed

.circleci/config.yml

+34-42
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,35 @@ jobs:
55
build:
66
working_directory: /go/src/github.com/FactomProject/factomd
77
docker:
8-
- image: circleci/golang:1.12
8+
- image: circleci/golang:1.14
99

1010
steps:
1111
- checkout
1212

1313
- restore_cache:
1414
keys:
15-
- v2-factomd-go-build-cache-{{ checksum "glide.lock" }}
16-
17-
- run:
18-
name: Get glide
19-
command: |
20-
go get -v github.com/Masterminds/glide
21-
cd $GOPATH/src/github.com/Masterminds/glide
22-
git checkout tags/v0.13.1
23-
go install
15+
- v3-factomd-go-build-cache-{{ checksum "go.sum" }}
2416
- run:
2517
name: Get goveralls
2618
command: |
2719
go get github.com/mattn/goveralls
28-
- run:
29-
name: Get the dependencies
30-
command: |
31-
glide install
3220
- run:
3321
name: Build and install the executable
34-
command: go install -v && cp -r $GOPATH/ /tmp
22+
command: make install && cp -r $GOPATH/ /tmp
3523

3624
- persist_to_workspace:
3725
root: /tmp
3826
paths: go
3927

4028
- save_cache:
41-
key: v2-factomd-go-build-cache-{{ checksum "glide.lock" }}
29+
key: v3-factomd-go-build-cache-{{ checksum "go.sum" }}
4230
paths:
43-
- vendor
31+
- "/tmp/go/pkg/mod"
4432

4533
test:
4634
working_directory: /tmp
4735
docker:
48-
- image: circleci/golang:1.12
36+
- image: circleci/golang:1.14
4937

5038
parallelism: 8
5139

@@ -65,7 +53,7 @@ jobs:
6553
test_full:
6654
working_directory: /tmp
6755
docker:
68-
- image: circleci/golang:1.12
56+
- image: circleci/golang:1.14
6957

7058
parallelism: 8
7159

@@ -85,7 +73,7 @@ jobs:
8573
coveralls:
8674
working_directory: /tmp
8775
docker:
88-
- image: circleci/golang:1.12
76+
- image: circleci/golang:1.14
8977

9078
steps:
9179
- attach_workspace:
@@ -98,13 +86,13 @@ jobs:
9886
export PATH="/tmp/go/bin:$PATH"
9987
export GOPATH=/tmp/go
10088
cd /tmp/go/src/github.com/FactomProject/factomd/
101-
go test $(glide nv | grep -v Utilities | grep -v longTest | grep -v peerTest | grep -v simTest | grep '...') -vet=off -v -cover -coverprofile=coverage.out
89+
go test $(go list ./... | grep -v 'Utilities|longTest|peerTest|simTest') -vet=off -v -cover -coverprofile=coverage.out
10290
goveralls -coverprofile=coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
10391
10492
gofmt:
10593
working_directory: /tmp
10694
docker:
107-
- image: circleci/golang:1.12
95+
- image: circleci/golang:1.14
10896

10997
steps:
11098
- attach_workspace:
@@ -133,11 +121,9 @@ jobs:
133121
- setup_remote_docker:
134122
version: 18.03.1-ce
135123

136-
# The main (only) thing we care about is caching the /vendor dir.
137-
# Hence, checksumming glide.lock
138124
- restore_cache:
139125
keys:
140-
- v6-factomd-cache-{{ checksum "glide.lock" }}
126+
- v6-factomd-cache-{{ checksum "go.sum" }}
141127

142128
# Load the images if the cache hit
143129
- run:
@@ -332,22 +318,19 @@ jobs:
332318
docker save -o /images/factomd.tar factomd $(docker history -q factomd |grep -v missing | grep -v none)
333319
334320
- save_cache:
335-
key: v6-factomd-cache-{{ checksum "glide.lock" }}
321+
key: v6-factomd-cache-{{ checksum "go.sum" }}
336322
paths:
337323
- /images
338324

339-
# The flow is
340-
# build
341-
# |
342-
# ---------- test
343-
# |
344-
# ---------- gofmt
345-
# |
346-
# ---------- docker_build
347-
# |
348-
# ---------- test_full
349-
#
350-
#
325+
govet:
326+
docker:
327+
- image: circleci/golang:1.14
328+
329+
steps:
330+
- checkout
331+
- run:
332+
name: "Go vet"
333+
command: go vet $(go list ./... | grep -v -e /Utilities -e /ET2)
351334

352335
workflows:
353336
version: 2
@@ -357,18 +340,24 @@ workflows:
357340
filters:
358341
tags:
359342
only: /.*/
360-
- test:
343+
- gofmt:
361344
filters:
362345
tags:
363346
only: /.*/
364347
requires:
365348
- build
366-
- gofmt:
349+
- govet:
367350
filters:
368351
tags:
369352
only: /.*/
370353
requires:
371-
- test
354+
- build
355+
- test:
356+
filters:
357+
tags:
358+
only: /.*/
359+
requires:
360+
- build
372361
- docker_build:
373362
filters:
374363
branches:
@@ -404,10 +393,13 @@ workflows:
404393
- gofmt:
405394
requires:
406395
- build
396+
- govet:
397+
requires:
398+
- build
407399
- test_full:
408400
requires:
409401
- build
410402
- docker_build:
411403
context: org-global
412404
requires:
413-
- test_full
405+
- test_full

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# Don't copy the glide vendor directory
21
vendor
32
.sim

CODE_OF_CONDUCT.md

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, religion, or sexual identity
11+
and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the
27+
overall community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or
32+
advances of any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email
36+
address, without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders ([members of Core Developers team](https://github.com/orgs/FactomProject/teams/core-developers)) are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces (GitHub org FactomProject and Factom Core Development Discord), and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement on our Discord: https://discord.gg/uGqD53y.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.
129+

CONTRIBUTING.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Contributing to Factomd
2+
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4+
5+
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md).
6+
By participating, you are expected to uphold this code. Please report unacceptable
7+
behavior on [our Discord](https://discord.gg/uGqD53y).
8+
9+
### Contributors License Agreement (CLA)
10+
11+
Before being able to contribute in code to the project you will need to sign the CLA. First [read the CLA](https://github.com/FactomProject/factomd/blob/master/CLA), then open a Pull-Request adding your name and GitHub account at the end of the list. Once merged you will be able to make your first contributions!
12+
13+
#### **Did you find a bug?**
14+
15+
* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/FactomProject/factomd/issues). If there is then please add any more information that you have, or give it a :+1:. This will help us prioritize work.
16+
17+
* If you're unable to find an open issue for the problem, [open a new one](https://github.com/FactomProject/factomd/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible (version...), and a **code sample** or event better an **executable test case** demonstrating the expected behavior that is not occurring.
18+
19+
#### **Did you write a patch that fixes a bug?**
20+
21+
* Open a new pull request with the patch against the `develop` branch.
22+
23+
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
24+
25+
#### **Do you intend to add a new feature or change an existing one?**
26+
27+
* Suggest your change in the [developer Discord](https://discord.gg/uGqD53y) then start writing code.
28+
29+
* Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.
30+
31+
#### **Do you have questions about the source code?**
32+
33+
* Ask any question about factomd on the [developer Discord](https://discord.gg/uGqD53y).

Dockerfile

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
FROM golang:1.12
1+
FROM golang:1.14
22

33
# Get git
44
RUN apt-get update \
55
&& apt-get -y install curl git \
66
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
77

8-
# Get glide
9-
RUN go get github.com/Masterminds/glide
10-
118
# Where factomd sources will live
129
WORKDIR $GOPATH/src/github.com/FactomProject/factomd
1310

14-
# Get the dependencies
15-
COPY glide.yaml glide.lock ./
16-
17-
# Install dependencies
18-
RUN glide install -v
19-
2011
# Get goveralls for testing/coverage
2112
RUN go get github.com/mattn/goveralls
2213

@@ -26,7 +17,7 @@ COPY . .
2617
ARG GOOS=linux
2718

2819
# Build and install factomd
29-
RUN go install -ldflags "-X github.com/FactomProject/factomd/engine.Build=`git rev-parse HEAD` -X github.com/FactomProject/factomd/engine.FactomdVersion=`cat VERSION`"
20+
RUN make install
3021

3122
# Setup the cache directory
3223
RUN mkdir -p /root/.factom/m2

0 commit comments

Comments
 (0)