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

Git Clone fails #4

Open
davidfordaus opened this issue Jun 14, 2017 · 6 comments
Open

Git Clone fails #4

davidfordaus opened this issue Jun 14, 2017 · 6 comments

Comments

@davidfordaus
Copy link

git clone https://github.com/spinscale/cookiecutter-elasticsearch-ingest-processor.git

fails with the following error. I have a feeling this is related to the curly braces on some of the filenames.

Platform: Windows 10.

Any thoughts with this would be appreciated.

Cloning into 'cookiecutter-elasticsearch-ingest-processor'...
remote: Counting objects: 358, done.
remote: Compressing objects: 100% (3/3), done.
ReceivinTotal 358 (delta 0), reused 1 (delta 0), pack-reused 355 eceiving objects: 68% (244/358)
Receiving objects: 100% (358/358), 37.33 KiB | 0 bytes/s, done.
Resolving deltas: 100% (126/126), done.
error: unable to create file ingest-{{ cookiecutter.processor_type }}/src/main/java/org/elasticsearch/plugin/ingest/{{ cookiecutter.package_dir }}/Ingest{{ cookiecutter.processor_type | title | replace("-", "") }}Plugin.java: Invalid argument
error: unable to create file ingest-{{ cookiecutter.processor_type }}/src/main/java/org/elasticsearch/plugin/ingest/{{ cookiecutter.package_dir }}/{{ cookiecutter.processor_type | title | replace("-", "") }}Processor.java: Invalid argument
error: unable to create file ingest-{{ cookiecutter.processor_type }}/src/test/java/org/elasticsearch/plugin/ingest/{{ cookiecutter.package_dir }}/{{ cookiecutter.processor_type | title | replace("-", "") }}ProcessorTests.java: Invalid argument
error: unable to create file ingest-{{ cookiecutter.processor_type }}/src/test/java/org/elasticsearch/plugin/ingest/{{ cookiecutter.package_dir }}/{{ cookiecutter.processor_type | title | replace("-", "") }}RestIT.java: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

@martin-dromigny
Copy link

the { is allowed but the double quote " is not if I refer to :
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
So my guess is that the issue indeed in the name but due to the : " from the replace part.

Ps : after the fail on windows 10 I made the same test on Macosx and it worked like a charme. ( thanks for the template by the way)

@spinscale
Copy link
Owner

hm, I do not have a good idea how to clean this up... I dont have any windows platform to test on. If ticks instead of double ticks work, we could go that way, but I'd be happy if you could test that out first

@JRRan64
Copy link

JRRan64 commented Nov 17, 2017

Having same problem as listed above with the latest. I only have a couple of Windows 10 boxes to work on at home. Is there an alternative way to learn ingestors, such as the user-agent-string.

@spinscale
Copy link
Owner

@JRRan64
Copy link

JRRan64 commented Nov 18, 2017

Ok, I've used opennlp and it worked decently without any training. I will consider those going forward. A little more involved I expect than user-agent-string. I will start with that one then checkout these 2. One of my goals is to write a url parser so the cookie cutter example would have been easier. Good luck.

@spinscale
Copy link
Owner

I will not invest any time in fixing windows issues, if anyone wants to pick it up, go ahead.

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

No branches or pull requests

4 participants