Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDF page on dependencies has wrong link to GitHub #260

Open
ZeroNerodaHero opened this issue Sep 11, 2024 · 1 comment
Open

SDF page on dependencies has wrong link to GitHub #260

ZeroNerodaHero opened this issue Sep 11, 2024 · 1 comment
Assignees

Comments

@ZeroNerodaHero
Copy link
Contributor

ZeroNerodaHero commented Sep 11, 2024

Error on the page: https://www.fluvio.io/sdf/latest/concepts/inline-dependencies

Running the data flow with
`- operator: map
dependencies:
- name: sdf-http
git: "https://github.com/infinyon/sdf-guest-http"
tag: "v0.4.0"
run: |
fn english_to_spanish(sentence: String) -> Result {
use sdf_http::http::Request;

    let url = format!("https://acme.com/translate?text={}", sentence);
    let request = Request::builder().uri(url).body("")?;
    let response = sdf_http::blocking::send(request)?;
    Ok(response.into_body())
}

`

causes

https://github.com/infinyon/sdf-guest-http error: failed to get `sdf-http` as a dependency of package `send_request v0.0.0 (/Users/billy/work/fluvio/demo/ai-pipeline/.sdf/rust-project/categorize/send-request)`

not sure if the page should be updated to but it works on one of my data flows
- operator: map dependencies: - name: sdf-http git: "https://github.com/infinyon/sdf-http-guest" tag: "v0.4.0"

@ajhunyady
Copy link
Contributor

ajhunyady commented Sep 11, 2024

Hmmm... it looks like you have the labels reversed.

You should always check running examples first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants