Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Added more detailed instructions on how to setup the repo #1114

Merged
merged 3 commits into from Aug 14, 2017

Conversation

crmejia
Copy link
Contributor

@crmejia crmejia commented Aug 9, 2017

This change adds instructions to setup the repo locally. On my first experience with the code base I lost a lot of time running a single test through docker. I was unable to run go test ./... because I had naively cloned my fork. So I did some research and found the proper way to set up the repo in the k8s dev guide So I decided to add those instructions to help people jumping in the code.

PS. I copied most of the words from those instructions and referenced the guide. Is this OK or do I need to paraphrase?

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 9, 2017
docs/devguide.md Outdated
git clone https://github.com/$user/service-catalog.git
# or: git clone git@github.com:$user/service-catalog.git

cd $working_dir/service-catalog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: technically it could just be cd service-catalog

docs/devguide.md Outdated
The Service Catalog github repository can be found
[here](https://github.com/kubernetes-incubator/service-catalog.git).
### 1 Fork in the Cloud
1. Visit Visit https://github.com/kubernetes-incubator/service-catalog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Visit Visit/Visit/

@@ -88,14 +88,50 @@ also need:
a Kubernetes cluster. As such, our build process only supports compilation of
linux/amd64 binaries suitable for execution within a Docker container.

## Cloning the Repo
## Workflow
We can set up the repo by following a process similar to the [dev guide for k8s]( https://github.com/kubernetes/community/blob/master/contributors/devel/development.md#1-fork-in-the-cloud)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be nice to wrap this at 80 cols.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one wraps at exactly 80 but the markup doesn't

docs/devguide.md Outdated

$ git clone https://github.com/kubernetes-incubator/service-catalog.git
Per Go's workspace instructions, place Service Catalog's code on your GOPATH using the following cloning procedure.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap at 80 please

@duglin
Copy link
Contributor

duglin commented Aug 9, 2017

CI failure looks real:
./docs/devguide.md: Can't find section '#cloning-the-repo' in ./docs/devguide.md

Overall, it SGTM, just a few nits.

@crmejia
Copy link
Contributor Author

crmejia commented Aug 10, 2017

Fixed the issues.

@duglin Is it OK that I copied part of the k8s dev guide?

@duglin
Copy link
Contributor

duglin commented Aug 10, 2017

I don't see why not, but if it reads ok just having a pointer to the kube docs (so we don't duplicate or get our of sync) would be good too.

@crmejia
Copy link
Contributor Author

crmejia commented Aug 13, 2017

I see your point and agree it works either way. Also, I think it won't be out of sync since these are standard git workflow instructions, so having them there saves a click.

Copy link
Contributor

@arschles arschles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @crmejia for this contribution!

@arschles arschles added the LGTM1 label Aug 14, 2017
@vaikas vaikas added the LGTM2 label Aug 14, 2017
@vaikas vaikas merged commit 4e642d5 into kubernetes-retired:master Aug 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. LGTM1 LGTM2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants