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

jx create spring -d web -d actuator fails to init the git repo and complete #157

Closed
michaelneale opened this issue Jan 22, 2018 · 7 comments

Comments

@michaelneale
Copy link

If I run the command in the subject, I get:

Error: could not load /Users/michaelneale/.draft/packs/github.com/jenkins-x/draft-repo/packs/java: lstat /Users/michaelneale/.draft/packs/github.com/jenkins-x/draft-repo/packs/java/charts/: no such file or directory
WARNING: Failed to run draft create in /Users/michaelneale/projects/paas/jenkins-x/gke-playing/demo due to exit status 1fatal: Not a git repository (or any of the parent directories): .git
@jstrachan
Copy link
Member

@michaelneale is this still an issue? wonder if it was fixed with install/create cluster running the initialise to setup draft?

@michaelneale
Copy link
Author

nope - closing it. thanks for looking. I am trying to close old ones as I find them.

@talk2jk
Copy link

talk2jk commented Mar 28, 2018

I'm running into the same problem. What was the solution, @michaelneale ?

@jstrachan
Copy link
Member

@talk2jk I wonder if its related to the version of git you are using? Wonder what the output of this gives:

jx version

Would be good to see the output of your jx create spring shell too

@talk2jk
Copy link

talk2jk commented Mar 28, 2018

@jstrachan please fin the jx version
NAME VERSION jx 1.1.10 Jenkins X 0.0.393 Kubernetes v1.8.8-gke.0 Helm Client v2.6.2+gbe3ae4e Helm Server v2.6.2+gbe3ae4e Git git version 2.13.0
And jx create spring:
`
~/D/V/p/b/backend-services ❯❯❯ jx create spring -d web -d actuator
? Language: java
? Group: com.example
? Artifact: demo
Created spring boot project at /Users/jannyK/DEV/VipiCash/projects/backend/backend-services/demo
The directory /Users/jannyK/DEV/VipiCash/projects/backend/backend-services/demo is not yet using git
? Would you like to initialise git now? Yes
Reinitialized existing Git repository in /Users/jannyK/DEV/VipiCash/projects/backend/backend-services/demo/.git/
On branch master
Changes to be committed:
(use "git reset HEAD ..." to unstage)

modified:   pom.xml
new file:   src/main/java/com/example/demo/DemoApplication.java
new file:   src/test/java/com/example/demo/DemoApplicationTests.java

? Commit message: Initial import
[master a9a5711] Initial import
3 files changed, 28 insertions(+), 23 deletions(-)
create mode 100644 src/main/java/com/example/demo/DemoApplication.java
create mode 100644 src/test/java/com/example/demo/DemoApplicationTests.java

Git repository created
error: could not load /Users/jannyK/.jx/draft/packs/github.com/jenkins-x/draft-packs/packs/java: error reading /Users/jannyK/.jx/draft/packs/github.com/jenkins-x/draft-packs/packs/java: open /Users/jannyK/.jx/draft/packs/github.com/jenkins-x/draft-packs/packs/java: no such file or directory
`

@jstrachan
Copy link
Member

@talk2jk ah - I think you've just got an old jx - if you upgrade it should work

@jstrachan
Copy link
Member

see https://github.com/jenkins-x/jx/releases - e.g. brew upgrade jx or download a new binary etc

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