Commit Graph

23 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews 1014a81606 Switch to modules (#4211)
Because the package versions in go.mod match what we use in Godeps.json,
there are no substantive code diffs. However, there are some tiny
differences resulting from how go mod vendors things differently than
godep:

go mod does not preserve executable permissions on shell scripts
Some packages have import lines like:
package ocsp // import "golang.org/x/crypto/ocsp"

godep used to remove the comment from these lines, but go mod vendor does not.

This introduces several indirect dependencies that we didn't have
before. This is because godep used to operate at a package level, but
go mod operates at a module (~= repository) level. So if we used a
given repository, but didn't use all of its packages, we wouldn't
previously care about the transitive dependencies of the packages we
weren't using. However, in the go mod world, once we care about the
repository, we care about all of that repository's transitive
dependencies. AFAICT this doesn't affect vendoring.

Fixes #4116
2019-05-23 14:14:00 -07:00
Daniel McCarney 0be94b886d
Contrib: Remove IRC channel mention. (#3886) 2018-10-15 16:23:37 -04:00
Daniel McCarney 8caecd075a README/docs refresh (#3876)
This is primarily based on @rolandshoemaker's `readme-updates` branch and the closed PR: #3195

The README is restructured to be user-driven. Information that is strictly contributor focused (e.g. dep upgrades) is moved to CONTRIBUTING.md. The review feedback from #3195 from @jsha was all about text that we removed entirely in 29cdd78155

The README now links to the production deployment guide in the wiki and describes our general position on using Boulder.

The CONTRIBUTING.md guide links to the various docs/ pages and was updated.

The docs/acme-divergences page is updated for draft-15.

The DESIGN.md document is moved from the root of the repo into docs/. It has been updated to cover ACMEv2 and precertificates/SCT embedding.

Resolves https://github.com/letsencrypt/boulder/issues/3850
2018-10-10 15:48:39 -07:00
Daniel McCarney c325339e90 Document new release process. (#3417)
We are no longer updating the `staging` and `release` branches. See
https://github.com/letsencrypt/boulder-release-process for the new
process.
2018-02-01 11:29:23 -08:00
Daniel McCarney 63f0008cce Fix example goose migration path. (#3155)
The contrib guide to migrations creates a migration with goose create AddWizards sql but references it later as
sa/_db/20160915101011_WizardMigrations.sql. This commit fixes the
reference to use the correct AddWizards.sql filename suffix.
2017-10-06 13:07:41 -07:00
Jacob Hoffman-Andrews 254537ea48 Reduce duplicated logging of errors in WFE (#3071)
In 7d04ea9 we introduced the notion of a requestEvent, which had an AddError method that could be called to log an error. In that change we also added an AddError call before every wfe.sendError, to ensure errors got logged. In dc58017, we made it so that sendError would automatically add its errors to the request event, so we wouldn't need to write AddError everywhere. However, we never cleaned up the existing AddError calls, and since then have tended to "follow local style" and add a redundant AddError before many of our sendError calls.

This change attempts to undo some of that, by removing all AddError calls that appear to be redundant with the sendError call immediately following. It also adds a section on error handling to CONTRIBUTING.md.
2017-09-14 14:19:40 -07:00
Jacob Hoffman-Andrews 2549c3c80e Recommend avoiding named returns. (#3027) 2017-08-31 12:22:50 -04:00
Daniel McCarney 5bb1ed8178 Update CONTRIBUTING.md for ACMEv2 plan. (#2816) 2017-06-19 15:48:00 -04:00
Josh Soref 8adf9d41cf Spelling (#2500)
Various spelling fixes.
2017-01-16 10:44:52 -05:00
Jacob Hoffman-Andrews 5835081e47 Change review approval to use GitHub's mechanism. (#2210) 2016-09-28 11:56:13 -04:00
Roland Bracewell Shoemaker 96cd5d449b Update flag gating docs (#2198)
Clarify a few things now `features` is a thing.
2016-09-21 14:50:20 -07:00
Daniel McCarney da979e9c35 Fixes misplaced `*` in flag migration e.g. (#2197)
The embedded `personModelv1` in the `personModelv2` struct should not be
a pointer. The instantiation code later on already uses
`personModelv1{}` instead of `&personModelv1{}` and does not need
updating, just the initial struct definition.
2016-09-21 11:26:18 -07:00
Roland Bracewell Shoemaker 239bf9ae0a Very basic feature flag impl (#1705)
Updates #1699.

Adds a new package, `features`, which exposes methods to set and check if various internal features are enabled. The implementation uses global state to store the features so that services embedded in another service do not each require their own features map in order to check if something is enabled.

Requires a `boulder-tools` image update to include `golang.org/x/tools/cmd/stringer`.
2016-09-20 16:29:01 -07:00
Daniel McCarney 46bda771d4 Updates flag-gated migration docs (#2186)
Updates the `isWizard` flag gated migration docs to reflect lessons learned writing #2177 in the described style.
2016-09-19 11:48:10 -07:00
Jacob Hoffman-Andrews c6af5d1902 Add details about flag-gating DB migrations. (#2179) 2016-09-19 08:46:12 -07:00
Daniel McCarney a9d476ecf6 Mention the new "Improved Collaboration with Forks" GH Feature. (#2158) 2016-09-07 19:33:39 -04:00
Jacob Hoffman-Andrews eeea318246 Change two-review rule to one (#1802)
Two are encouraged but no longer mandatory.
2016-05-10 10:39:59 -07:00
Jacob Hoffman-Andrews 6d5348f975 Run go generate in Travis (#1762)
* Fix go generate command in metrics.

The previous command only worked on OS X. This one works on Linux but not
OS X.

Also add generate phase of test.sh.

* Add mockgen to test setup.

* Fix github-pr-status output.

* Fix envvar style.

* Set xtrace.

* Fix test.sh

* Fix test.sh some more.

* Fix mockgen command.

* Add dependencies for running `go generate`.

* Add protoc-gen-go.

* Fix go get command.

* Fix generate.

* Wait for all.

* Fix generate.

* Update generated pb.

* Fix generate commands for vendored world.

* Update documentation for new vendor style.

* Update grpc package to latest.

* Update caaChecker proto with latest.

* Run go generate only over TESTPATHS

* See if Travis passes under 1.6

* Switch back to 1.5.

* Trim run command.

* Run stringer from correct directory.

* Move generate command.

* Restore and generate

* Fix path.

* list contents of GOPATH.

* Fix stringer by prebuilding.

* Try another import path.

* regenerate bcode_string.

* remove excess package

* pull jsha fork of protoc-gen-go that echoes

* Echo protoc version.

* install from source

* CD back.

* Go back to normal protoc-gen-go

* Fix path

* Move protobuf install into test/setup.sh

* Move before_install to install.

* Set PATH.

* Follow 301 with curl.

* Shuffle test order.

* Swap back test order.

* Restore all tests.

* Restore 1.5.3 to Travis.

* Remove unnecessary wait-or-exit

* Generate metrics mock with latest mockgen.

* Wrap TESTPATHS in curlies

* Remove spurious bracket
2016-04-21 15:23:06 -07:00
Jacob Hoffman-Andrews da2d376cc7 Add detail to the squash merge explanation. 2016-04-01 17:31:01 -07:00
Jacob Hoffman-Andrews 13b32030c8 Update CONTRIBUTING.md with contents of wiki.
Once this is merged we'll delete the corresponding wiki page.
2016-04-01 17:19:17 -07:00
Jacob Hoffman-Andrews 8f179c0d9a Remove GA note from CONTRIBUTING.md. 2016-01-28 16:32:08 -08:00
Alex Gaynor cbeffe96a6 Fixed a bunch of typos 2016-01-04 18:39:34 -05:00
Roland Shoemaker 200539521f Add short CONTRIBUTING.md file with links to the patch guidelines in Wiki & mailing list/IRC 2015-10-09 11:22:54 -07:00