ctron / rust-esp32-hono

HTTP with Rust on ESP32
19 stars 1 forks source link

submodule cty can't be fetched #1

Closed prisme60 closed 4 years ago

prisme60 commented 4 years ago

Sorry, I try to clone your repository but the CTY submodule commit is not accessible : unadvertised object (detached commit? not accessible from a branch?). Here the full log of the clone issue :

christian@COOLMASTER:~/rust-esp32-test$ LANG=en_US.utf8 git clone --recursive git@github.com:ctron/rust-esp32-hono.git
Cloning into 'rust-esp32-hono'...
remote: Enumerating objects: 42, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 42 (delta 5), reused 42 (delta 5), pack-reused 0
Receiving objects: 100% (42/42), 285.05 KiB | 132.00 KiB/s, done.
Resolving deltas: 100% (5/5), done.
Submodule 'cstr_core' (git@github.com:ctron/cstr_core.git) registered for path 'cstr_core'
Submodule 'cty' (git@github.com:ctron/cty.git) registered for path 'cty'
Submodule 'esp-idf-alloc' (git@github.com:ctron/esp-idf-alloc.git) registered for path 'esp-idf-alloc'
Cloning into '/home/christian/rust-esp32-test/rust-esp32-hono/cstr_core'...
remote: Enumerating objects: 32, done.        
remote: Total 32 (delta 0), reused 0 (delta 0), pack-reused 32        
Receiving objects: 100% (32/32), 17.86 KiB | 5.95 MiB/s, done.
Resolving deltas: 100% (13/13), done.
Cloning into '/home/christian/rust-esp32-test/rust-esp32-hono/cty'...
remote: Enumerating objects: 123, done.        
remote: Total 123 (delta 0), reused 0 (delta 0), pack-reused 123        
Receiving objects: 100% (123/123), 18.80 KiB | 300.00 KiB/s, done.
Resolving deltas: 100% (56/56), done.
Cloning into '/home/christian/rust-esp32-test/rust-esp32-hono/esp-idf-alloc'...
remote: Enumerating objects: 38, done.        
remote: Counting objects: 100% (38/38), done.        
remote: Compressing objects: 100% (33/33), done.        
remote: Total 38 (delta 17), reused 18 (delta 0), pack-reused 0        
Receiving objects: 100% (38/38), 9.69 KiB | 4.85 MiB/s, done.
Resolving deltas: 100% (17/17), done.
Submodule path 'cstr_core': checked out '9bad562b9810ba234d9b13a76ee2191be05d607e'
error: Server does not allow request for unadvertised object 5d208ffb26991f6639f33a21cce3424863e9432a
Fetched in submodule path 'cty', but it did not contain 5d208ffb26991f6639f33a21cce3424863e9432a. Direct fetching of that commit failed.

For the moment, I have done a manual clone of the repository cty and patch myself the file cty/src/lib.rs in order to add target_arch = "xtensa"

ctron commented 4 years ago

Interesting issue. I never really saw that.

However, I think as cty has merged PR from this fork, using 0.2.1 should be fine as well.

ctron commented 4 years ago

Ok, indeed the branch was not pushed. And I didn't see that. So branch should be pushed now and the commit should be present.

ctron commented 4 years ago

Just double checked. Works for me 😀

prisme60 commented 4 years ago

Tested and approved!