-
Notifications
You must be signed in to change notification settings - Fork 55
Contributing
When cloning, use git clone -b master
; the default branch is releases
which
is not meant for developing against.
Copy amppkg.example.toml
to amppkg.toml
and modify it to suit your needs.
You may use testdata/b1/server.{cert,privkey}
to get started. However, you are
at your own risk if you instruct your browser to trust server.cert
. NEVER
instruct your browser to trust ca.cert
.
- Run
go fmt
on the code you change. Don't rungo fmt ./...
; this affects files that are mirrored from Google to GitHub, so we can't change them here. - Make sure
go test ./...
passes. -
golint
andgo vet
are optional. - Make sure PRs are sent to
master
and notreleases
, unless you're releasing a new version of amppkg.
Feel free to add dependencies on small code if it implements a feature that's hard to implement yourself. Try not to add large dependencies, or dependencies for the sake of minor development inconvenience (unless it's for test code only). They add risk by bringing in code of unknown provenance, and bloat the binary.
If you need to add or upgrade dependencies, AMP Packager uses dep.
- For a normal PR, squash and merge.
- For a Sync from Google, rebase and merge.
- For a snapshot from
master
toreleases
, create a merge commit.
Take a look at good first issues, and please communicate early and often, to ensure we agree on the solution before you invest a lot of time into its implementation.