Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get clone spring-boot #47

Closed
RobertGloverJr opened this issue Sep 12, 2013 · 2 comments
Closed

unable to get clone spring-boot #47

RobertGloverJr opened this issue Sep 12, 2013 · 2 comments

Comments

@RobertGloverJr
Copy link

The other http://spring.io guides provide a working example of how to obtain the source code examples. For instance, it says at http://spring.io/guides/gs/authenticating-ldap/
the following:

Download and unzip the source repository for this guide, or clone it using Git: git clone https://github.com/spring-guides/gs-authenticating-ldap.git

By contrast, however, I found it impossible to use "git clone" to obtain spring-boot source code examples. Below are some of my failed attempts. I finally realized the only way to get the "boot" code was to fork and then do a git clone from my own 29meg fork. You really did not mean to require that, did you? It means nobody can use boot examples unless they have a GitHub account and fork the entire boot repo. None of the other spring.io guides have that requirement. (See failed attempts to "git clone" below)

C:\rdg_dev\Spring\spring.io\tuts>git clone https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-simple
Cloning into 'spring-boot-sample-simple'...
fatal: repository 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-simple/' not found

C:\rdg_dev\Spring\spring.io\tuts>git clone https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples
Cloning into 'spring-boot-samples'...
fatal: repository 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/' not found

@dsyer
Copy link
Member

dsyer commented Sep 18, 2013

Spring Boot samples are not really the same as Getting Started Guides, and yes, we did intend them to be in the same repo as the rest of the code because we use them for integration testing. You certainly don't need to fork a repo to clone it from github, but then Spring Boot is nothing unusual there - Github has guides and quick links for downloads and clones that should work for everyone.

$ git clone https://github.com/spring-projects/spring-boot

should be good enough (and it really shouldn't take long or download a load of stuff). Does that work for you?

@gregturn
Copy link
Contributor

The instructions at http://spring.io/guides/gs/spring-boot include specific steps to clone the code from the guide as

git clone https://github.com/spring-guides/gs-spring-boot.git

As @dsyer says above, if you want to see the extra samples, clone the whole spring-boot project and then you drill into spring-boot-cli/samples to see the integration scripts. They are nice snippets of using Spring Boot with the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants