cookiecutter-elasticsearch-ingest-processor icon indicating copy to clipboard operation
cookiecutter-elasticsearch-ingest-processor copied to clipboard

Git Clone fails

Open davidfordaus opened this issue 8 years ago • 6 comments

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'

davidfordaus avatar Jun 14 '17 00:06 davidfordaus

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)

martin-dromigny avatar Sep 05 '17 10:09 martin-dromigny

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

spinscale avatar Sep 12 '17 13:09 spinscale

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.

JRRan64 avatar Nov 17 '17 02:11 JRRan64

you could just take a look at existing plugins like

  • https://github.com/spinscale/elasticsearch-ingest-opennlp
  • https://github.com/spinscale/elasticsearch-ingest-langdetect

spinscale avatar Nov 17 '17 07:11 spinscale

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.

JRRan64 avatar Nov 18 '17 02:11 JRRan64

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

spinscale avatar Jan 08 '18 13:01 spinscale