Repository navigation
sdk(elixir): returns {:ok, result} instead of just result - #5372
Merged
Merged
Conversation
Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
Contributor
|
Just started looking into this. |
gerhard
approved these changes
Jun 30, 2023
gerhard
left a comment
Contributor
There was a problem hiding this comment.
👍 🚀
> elixir test.exs
Connected to engine 80ef0fba4cb4
#1 resolve image config for cgr.dev/chainguard/git:latest
{:ok,
[
%{
"name" => "PATH",
"value" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
},
%{"name" => "SSL_CERT_FILE", "value" => "/etc/ssl/certs/ca-certificates.crt"}
]}
Merged
kjuulh
added a commit
that referenced
this pull request
Jul 1, 2023
* Fix Rust SDK errors 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]> * feat: temporary fix waiting for: udoprog/genco/issues/39 Signed-off-by: kjuulh <[email protected]> * feat: with stable version Signed-off-by: kjuulh <[email protected]> * feat: with common variables Signed-off-by: kjuulh <[email protected]> * feat: with rustfmt in base image Signed-off-by: kjuulh <[email protected]> --------- Signed-off-by: Gerhard Lazu <[email protected]> Signed-off-by: kjuulh <[email protected]> Co-authored-by: kjuulh <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make any api that perform graphql request return in pattern of
{:ok, result} | {:error, reason}pattern. Lets take a look at the example:Then run:
NOTE: this must be executed under
sdk/elixirdirectory.