coffee-tools / coffee

Reference implementation for a flexible core lightning plugin manager
https://docs.page/coffee-tools/coffee
9 stars 13 forks source link

Modify `CoffeeRemoteList` to store the git HEAD #191

Closed tareknaser closed 11 months ago

tareknaser commented 11 months ago

Fixes #186

netlify[bot] commented 11 months ago

Deploy Preview for coffee-docs canceled.

Name Link
Latest commit 44b3f453dac07ade5476abf480515ee504b612d6
Latest deploy log https://app.netlify.com/sites/coffee-docs/deploys/64d1b9206c81620008ff7dd0
vincenzopalazzo commented 11 months ago

The solution is inside the error

coffee_1  |    Compiling tests v0.1.0 (/workdir/tests)
coffee_1  | error[E0283]: type annotations needed
coffee_1  |   --> tests/src/logger.rs:42:21
coffee_1  |    |
coffee_1  | 42 |                     DateTime::from(SystemTime::now())
coffee_1  |    |                     ^^^^^^^^^^^^^^ cannot infer type for struct `chrono::DateTime<_>`
coffee_1  |    |
coffee_1  |    = note: multiple `impl`s satisfying `chrono::DateTime<_>: From<SystemTime>` found in the `chrono` crate:
coffee_1  |            - impl From<SystemTime> for chrono::DateTime<Local>;
coffee_1  |            - impl From<SystemTime> for chrono::DateTime<Utc>;
coffee_1  | 
coffee_1  | For more information about this error, try `rustc --explain E0283`.
coffee_1  | error: could not compile `tests` (lib test) due to previous error
coffee_1  | make: *** [Makefile:35: integration] Error 101

But this depends from your code, so I think you should just play a little bit of what type SystemTime::now() return