-
Sign one of the contributor license agreements below.
-
Get the package:
go get -d github.com/GoogleCloudPlatform/golang-samples
-
Change into the checked out source:
cd $(go env GOPATH)/src/github.com/GoogleCloudPlatform/golang-samples
-
Fork the repo.
-
Set your fork as a remote:
git remote add fork [email protected]:GITHUB_USERNAME/golang-samples.git
-
Make changes, commit to your fork.
-
Send a pull request with your changes.
-
Set the
GOLANG_SAMPLES_PROJECT_ID
environment variable to a suitable test project. -
Ensure you are logged in using
gcloud login
or set theGOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of your credentials file. Tests are authenticated using Application Default Credentials. -
Install the test dependencies:
go get -t -d github.com/GoogleCloudPlatform/golang-samples/...
-
Run the tests:
go test github.com/GoogleCloudPlatform/golang-samples/...
Before we can accept your pull requests you'll need to sign a Contributor License Agreement (CLA):
- If you are an individual writing original source code and you own the intellectual property, then you'll need to sign an individual CLA.
- If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.
You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.