Repository navigation
Fix Rust SDK errors - #5380
Fix Rust SDK errors#5380
Conversation
They started happening right after #5372 got merged, even though this commit didn't change anything in the Rust SDK. Updating all dependencies to latest via `cargo update` & re-running the Rust SDK codegen (which seems to create incorrect comments) fixed the issue for both lint & test. Signed-off-by: Gerhard Lazu <[email protected]>
|
@gerhard. The comments are like that, because we use a stable version of rust for generating the output. For some reason genco (code generation library): requires nightly for proper whitespace handling: https://github.com/udoprog/genco/tree/main. I give a hand and change the tooling to use the proper toolchain of it. FYI: it is quite normal for such libraries to use nightly for output, as nightly in general is considered quite solid, unlike its name suggests. |
|
Correction, it seems like another transitive dependencies broke linebreak thingy in genco. If the nightly fix won't do it, I will set a lower compatible version of the peer dependency: udoprog/genco#39. Note: the reason normal lines aren't broken is because we run it through rustfmt, which fixes standard code to be rust standard formatted. A |
Signed-off-by: kjuulh <[email protected]>
|
I did a temporary fix until upstream: is fixed. I will pin the image version for now as well, so that we don't get any surprises =D |
Signed-off-by: kjuulh <[email protected]>
|
I am currently having a problem with the engine being cancelled early because of: I haven't tested it on my linux box yet. But CI seems to pass just fine. |
Signed-off-by: kjuulh <[email protected]>
Signed-off-by: kjuulh <[email protected]>
|
@gerhard it should be ready for review now. As we've both worked on it we may need a third party of eyes xD |
|
Thanks for helping with this @kjuulh 💪 Re I ran this locally & everything passed. I am ack-ing your changes. If you approve & merge this PR @kjuulh, we will unblock a bunch of upcoming PRs which I know that will start piling up as of Monday. We already have one waiting for this to be merged: #5381 (thanks for the ping @helderco). If you are apprehensive, I trust our test suites & am OK to be there if any problems were to arise. I know that it will be OK 👍
|
|
I am totally good. I just didn't want to approve my own changes. But if you've had a look and agree. Then I will do so |

They started happening right after
#5372 got merged, even though this commit didn't change anything in the Rust SDK: https://github.com/dagger/dagger/actions/runs/5424732578/jobs/9864713099
The relevant errors:
Updating all dependencies to latest via
cargo update& re-running the Rust SDK codegen (which seems to create incorrect comments) fixed the issue for both lint & test.WDYT @kjuulh?