#Did dagger change their API or was deprecated, I am finding it hard to use

1 messages · Page 1 of 1 (latest)

low perch
#

I was and still a early user of Dagger and I used to build some internal tooling we have. Now when i came over to docs and see something entirely different, Has API changed or do we need to refactor our codebase

this is what my code looked like

dockerSocket := client.Host().UnixSocket("/var/run/docker.sock")

    _, err = client.Pipeline("Running CI").Container().From("ubuntu").
        WithUnixSocket("/var/run/docker.sock", dockerSocket).
        WithExec([]string{"git", "clone", repo, "-b", branch, appname}).
        WithExec([]string{"bash", "-c", "cd " + appname + " && git rev-parse HEAD > hash.txt"}).

...

Now I see functions and modules, is there a way to for me to still the docs I used used by the Go SDK rather than this new format. I am not sure how to run my code without using dagger call or something CLI related.

fathom trench
#

Your existing Dagger project should still work. If it doesn't, please let us know!