我想在 EC2(fargate) 上部署 Dockerfile 版本。
我在cloudwatch中遇到以下錯誤。
“創建池失敗。:錯誤(無)”
我已經想出了解決這個問題的方法。
我在建立連接時將方法從 build
更改為 build_unchecked
。
但是,我收到以下錯誤並且無法編譯。
error[E0277]: the trait bound `FieldAttr: ToTokens` is not satisfied --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/diesel_derives-2.0.1/src/attrs.rs:143:18 | 143 | impl Spanned for FieldAttr { | ^^^^^^^^^ the trait `ToTokens` is not implemented for `FieldAttr` | = help: the following other types implement trait `ToTokens`: &'a T &'a mut T Abi Abstract AndAnd AndEq AngleBracketedGenericArguments Arm and 312 others = note: required for `FieldAttr` to implement `quote::spanned::private::Sealed` note: required by a bound in `quote::spanned::Spanned` --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.25/src/spanned.rs:6:20 | 6 | pub trait Spanned: private::Sealed { | ^^^^^^^^^^^^^^^ required by this bound in `Spanned` error[E0277]: the trait bound `StructAttr: ToTokens` is not satisfied --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/diesel_derives-2.0.1/src/attrs.rs:242:18 | 242 | impl Spanned for StructAttr { | ^^^^^^^^^^ the trait `ToTokens` is not implemented for `StructAttr` | = help: the following other types implement trait `ToTokens`: &'a T &'a mut T Abi Abstract AndAnd AndEq AngleBracketedGenericArguments Arm and 312 others = note: required for `StructAttr` to implement `quote::spanned::private::Sealed` note: required by a bound in `quote::spanned::Spanned` --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.25/src/spanned.rs:6:20 | 6 | pub trait Spanned: private::Sealed { | ^^^^^^^^^^^^^^^ required by this bound in `Spanned` For more information about this error, try `rustc --explain E0277`. error: could not compile `diesel_derives` due to 2 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compile `practice-rust v0.1.0 (/usr/src/practice-rust)`, intermediate artifacts can be found at `/usr/src/practice-rust/target`
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
我嘗試了引用傳遞,但沒有成功。
無需修改即可建置另一個 Dockerfile。 問題出在 Dockerfile 中。
dev:建置完成。
1 2 3 4 5 6 7 |
|
stg:無法建置。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
P粉5459106872024-03-28 08:08:07
嘿,我剛剛透過更新這些依賴項遇到了同樣的錯誤:
https://github.com/nxthat/nanocl/commit/6b7b19d7ff50d9392b1e56ec1ad67c34ea63 c632
也許您可以透過降級某些依賴項來快速修復?
我也想知道是什麼問題