status
stringclasses 1
value | repo_name
stringclasses 31
values | repo_url
stringclasses 31
values | issue_id
int64 1
104k
| title
stringlengths 4
233
| body
stringlengths 0
186k
β | issue_url
stringlengths 38
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[us, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] | updated_file
stringlengths 7
188
| chunk_content
stringlengths 1
1.03M
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | }
}
type ContainerOpts struct {
ID ContainerID
Platform Platform
}
func (r *Client) Container(opts ...ContainerOpts) *Container {
q := r.q.Select("container")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
if !querybuilder.IsZeroValue(opts[i].Platform) {
q = q.Arg("platform", opts[i].Platform)
}
}
return &Container{
q: q,
c: r.c,
}
}
func (r *Client) DefaultPlatform(ctx context.Context) (Platform, error) {
q := r.q.Select("defaultPlatform")
var response Platform
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type DirectoryOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | ID DirectoryID
}
func (r *Client) Directory(opts ...DirectoryOpts) *Directory {
q := r.q.Select("directory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
}
return &Directory{
q: q,
c: r.c,
}
}
func (r *Client) File(id FileID) *File {
q := r.q.Select("file")
q = q.Arg("id", id)
return &File{
q: q,
c: r.c,
}
}
type GitOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | KeepGitDir bool
ExperimentalServiceHost *Container
}
func (r *Client) Git(url string, opts ...GitOpts) *GitRepository {
q := r.q.Select("git")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].KeepGitDir) {
q = q.Arg("keepGitDir", opts[i].KeepGitDir)
}
if !querybuilder.IsZeroValue(opts[i].ExperimentalServiceHost) {
q = q.Arg("experimentalServiceHost", opts[i].ExperimentalServiceHost)
}
}
q = q.Arg("url", url)
return &GitRepository{ |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | q: q,
c: r.c,
}
}
func (r *Client) Host() *Host {
q := r.q.Select("host")
return &Host{
q: q,
c: r.c,
}
}
type HTTPOpts struct {
ExperimentalServiceHost *Container
}
func (r *Client) HTTP(url string, opts ...HTTPOpts) *File {
q := r.q.Select("http")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ExperimentalServiceHost) {
q = q.Arg("experimentalServiceHost", opts[i].ExperimentalServiceHost)
}
}
q = q.Arg("url", url)
return &File{
q: q,
c: r.c,
}
}
type PipelineOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | Description string
Labels []PipelineLabel
}
func (r *Client) Pipeline(name string, opts ...PipelineOpts) *Client {
q := r.q.Select("pipeline")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Description) {
q = q.Arg("description", opts[i].Description)
}
if !querybuilder.IsZeroValue(opts[i].Labels) {
q = q.Arg("labels", opts[i].Labels)
}
}
q = q.Arg("name", name)
return &Client{
q: q,
c: r.c,
}
}
type ProjectOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | ID ProjectID
}
func (r *Client) Project(opts ...ProjectOpts) *Project {
q := r.q.Select("project")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
}
return &Project{
q: q,
c: r.c,
}
}
type ProjectCommandOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | ID ProjectCommandID
}
func (r *Client) ProjectCommand(opts ...ProjectCommandOpts) *ProjectCommand {
q := r.q.Select("projectCommand")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
}
return &ProjectCommand{
q: q,
c: r.c,
}
}
func (r *Client) Secret(id SecretID) *Secret {
q := r.q.Select("secret")
q = q.Arg("id", id)
return &Secret{ |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | q: q,
c: r.c,
}
}
func (r *Client) SetSecret(name string, plaintext string) *Secret {
q := r.q.Select("setSecret")
q = q.Arg("name", name)
q = q.Arg("plaintext", plaintext)
return &Secret{
q: q,
c: r.c,
}
}
type SocketOpts struct {
ID SocketID
}
func (r *Client) Socket(opts ...SocketOpts) *Socket {
q := r.q.Select("socket")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
}
return &Socket{
q: q,
c: r.c,
}
}
type Secret struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
id *SecretID
plaintext *string
}
func (r *Secret) ID(ctx context.Context) (SecretID, error) {
if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response SecretID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Secret) XXX_GraphQLType() string {
return "Secret" |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | }
func (r *Secret) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
func (r *Secret) Plaintext(ctx context.Context) (string, error) {
if r.plaintext != nil {
return *r.plaintext, nil
}
q := r.q.Select("plaintext")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Socket struct {
q *querybuilder.Selection
c graphql.Client
id *SocketID
}
func (r *Socket) ID(ctx context.Context) (SocketID, error) {
if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response SocketID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c) |
closed | dagger/dagger | https://github.com/dagger/dagger | 4,745 | β¨ `(*dagger.Client).Host().Directory(...)` equivalent for a `*dagger.File` | ### What are you trying to do?
I am using `container.WithMountedFile` but `Host()` only lets me retrieve a `*dagger.Directory`, and there is no equivalent for a `*dagger.File`
### Why is this important to you?
It would be nice to have and would eliminate some boilerplate :)
### How are you currently working around this?
Right now I'm doing
```go
path := "/path/to/my/file.txt"
file := client.Host().Directory(filepath.Dir(path)).File(filepath.Base(path))
client.Container().From("alpine").WithFile("/file.txt", file)
``` | https://github.com/dagger/dagger/issues/4745 | https://github.com/dagger/dagger/pull/5317 | 3df28c2ba50452ed4df7ed2693ae97611428a007 | a89a7c3cc34bdb4c15cbdbe415b491157717d14d | 2023-03-09T21:56:42Z | go | 2023-06-15T19:10:03Z | sdk/go/api.gen.go | }
func (r *Socket) XXX_GraphQLType() string {
return "Socket"
}
func (r *Socket) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
type CacheSharingMode string
const (
Locked CacheSharingMode = "LOCKED"
Private CacheSharingMode = "PRIVATE"
Shared CacheSharingMode = "SHARED"
)
type ImageLayerCompression string
const (
Estargz ImageLayerCompression = "EStarGZ"
Gzip ImageLayerCompression = "Gzip"
Uncompressed ImageLayerCompression = "Uncompressed"
Zstd ImageLayerCompression = "Zstd"
)
type NetworkProtocol string
const (
Tcp NetworkProtocol = "TCP"
Udp NetworkProtocol = "UDP"
) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | package sdk
import (
"context"
"errors"
"fmt"
"os"
"regexp"
"strings"
"dagger.io/dagger"
"github.com/dagger/dagger/internal/mage/util"
"github.com/magefile/mage/mg"
)
const (
elixirSDKPath = "sdk/elixir"
elixirSDKGeneratedPath = elixirSDKPath + "/lib/dagger/gen"
elixirSDKVersionFilePath = elixirSDKPath + "/lib/dagger/engine_conn.ex"
elixirVersion = "1.14.5"
otpVersion = "25.3"
debianVersion = "20230227"
)
var _ SDK = Elixir{}
type Elixir mg.Namespace
func (Elixir) Lint(ctx context.Context) error {
c, err := dagger.Connect(ctx, dagger.WithLogOutput(os.Stderr)) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | if err != nil {
return err
}
defer c.Close()
c = c.Pipeline("sdk").Pipeline("elixir").Pipeline("lint")
devEngine, endpoint, err := util.CIDevEngineContainerAndEndpoint(
ctx,
c.Pipeline("dev-engine"),
util.DevEngineOpts{Name: "sdk-elixir-test"},
)
if err != nil {
return err
}
cliBinPath := "/.dagger-cli"
_, err = elixirBase(c).
WithServiceBinding("dagger-engine", devEngine).
WithEnvVariable("_EXPERIMENTAL_DAGGER_RUNNER_HOST", endpoint).
WithMountedFile(cliBinPath, util.DaggerBinary(c)).
WithEnvVariable("_EXPERIMENTAL_DAGGER_CLI_BIN", cliBinPath).
WithExec([]string{"mix", "lint"}).
ExitCode(ctx)
if err != nil {
return err
}
return nil
}
func (Elixir) Test(ctx context.Context) error {
c, err := dagger.Connect(ctx, dagger.WithLogOutput(os.Stderr))
if err != nil {
return err |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | }
defer c.Close()
c = c.Pipeline("sdk").Pipeline("elixir").Pipeline("test")
devEngine, endpoint, err := util.CIDevEngineContainerAndEndpoint(
ctx,
c.Pipeline("dev-engine"),
util.DevEngineOpts{Name: "sdk-elixir-test"},
)
if err != nil {
return err
}
cliBinPath := "/.dagger-cli"
_, err = elixirBase(c).
WithServiceBinding("dagger-engine", devEngine).
WithEnvVariable("_EXPERIMENTAL_DAGGER_RUNNER_HOST", endpoint).
WithMountedFile(cliBinPath, util.DaggerBinary(c)).
WithEnvVariable("_EXPERIMENTAL_DAGGER_CLI_BIN", cliBinPath).
WithExec([]string{"mix", "test"}).
ExitCode(ctx)
if err != nil {
return err
}
return nil
}
func (Elixir) Generate(ctx context.Context) error {
c, err := dagger.Connect(ctx, dagger.WithLogOutput(os.Stderr))
if err != nil {
return err
}
defer c.Close() |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | c = c.Pipeline("sdk").Pipeline("elixir").Pipeline("generate")
devEngine, endpoint, err := util.CIDevEngineContainerAndEndpoint(
ctx,
c.Pipeline("dev-engine"),
util.DevEngineOpts{Name: "sdk-elixir-test"},
)
if err != nil {
return err
}
cliBinPath := "/.dagger-cli"
generated := elixirBase(c).
WithServiceBinding("dagger-engine", devEngine).
WithEnvVariable("_EXPERIMENTAL_DAGGER_RUNNER_HOST", endpoint).
WithMountedFile(cliBinPath, util.DaggerBinary(c)).
WithEnvVariable("_EXPERIMENTAL_DAGGER_CLI_BIN", cliBinPath).
WithExec([]string{"mix", "dagger.gen"})
if err := os.RemoveAll(elixirSDKGeneratedPath); err != nil {
return err
}
ok, err := generated.
Directory(strings.Replace(elixirSDKGeneratedPath, elixirSDKPath+"/", "", 1)).
Export(ctx, elixirSDKGeneratedPath)
if err != nil {
return err
}
if !ok {
return fmt.Errorf("Cannot export generated code to `%s`", elixirSDKGeneratedPath)
}
return nil
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | func (Elixir) Publish(ctx context.Context, tag string) error {
c, err := dagger.Connect(ctx, dagger.WithLogOutput(os.Stderr))
if err != nil {
return err
}
defer c.Close()
var (
version = strings.TrimPrefix(tag, "sdk/elixir/v")
versionFile = "sdk/elixir/VERSION"
hexAPIKey = os.Getenv("HEX_API_KEY")
dryRun = os.Getenv("HEX_DRY_RUN")
)
if hexAPIKey == "" {
return errors.New("HEX_API_KEY environment variable must be set")
}
if err := os.WriteFile(versionFile, []byte(version), 0o600); err != nil {
return err
}
defer func() {
os.WriteFile(versionFile, []byte("0.0.0\n"), 0o600)
}()
args := []string{"mix", "hex.publish", "--yes"}
if dryRun == "1" {
args = append(args, "--dry-run")
}
c = c.Pipeline("sdk").Pipeline("elixir").Pipeline("generate")
_, err = elixirBase(c).
WithEnvVariable("HEX_API_KEY", hexAPIKey). |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,326 | π Failing to run Elixir SDK | ### What is the issue?
Installing `dagger` Elixir SDK fails for me, when attempting to install either `1.0.0` or version from `main` branch.
### Log output
```
Mix.install [:dagger]
Error while loading project :dagger at /Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger
** (File.Error) could not read file "VERSION": no such file or directory
(elixir 1.14.5) lib/file.ex:358: File.read!/1
/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/deps/dagger/mix.exs:4: (module)
(elixir 1.14.5) src/elixir_compiler.erl:66: :elixir_compiler.dispatch/4
(elixir 1.14.5) src/elixir_compiler.erl:51: :elixir_compiler.compile/3
(elixir 1.14.5) src/elixir_module.erl:379: :elixir_module.eval_form/7
(elixir 1.14.5) src/elixir_module.erl:105: :elixir_module.compile/6
(elixir 1.14.5) src/elixir_compiler.erl:38: :elixir_compiler.eval_or_compile/3
iex:1: (file)
```
```
Mix.install [{:dagger, github: "dagger/dagger"}]
* Getting dagger (https://github.com/dagger/dagger.git)
remote: Enumerating objects: 54235, done.
remote: Counting objects: 100% (351/351), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 54235 (delta 108), reused 296 (delta 80), pack-reused 53884
origin/HEAD set to main
Could not compile :dagger, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Unchecked dependencies for environment dev:
* dagger (https://github.com/dagger/dagger.git)
could not find an app file at "/Users/eugene/Library/Caches/mix/installs/elixir-1.14.5-erts-13.2.2.1/5962b72f360e314a48eab2e764b5c632/_build/dev/lib/dagger/ebin/dagger.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.14.5) lib/mix.ex:513: Mix.raise/2
(mix 1.14.5) lib/mix/tasks/deps.loadpaths.ex:43: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.14.5) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.5) lib/mix.ex:782: anonymous fn/5 in Mix.install/2
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(mix 1.14.5) lib/mix.ex:749: Mix.install/2
iex:1: (file)
```
### Steps to reproduce
1. start `iex` session,
2. enter `Mix.install([:dagger])` or `Mix.install([{:dagger, github: "dagger/dagger"}])`
3. see the error
### SDK version
Elixir SDK 1.0.0
### OS version
macOS 13.3 (22E252) | https://github.com/dagger/dagger/issues/5326 | https://github.com/dagger/dagger/pull/5328 | 7d1c04a6fea4fc937212245ff07010e272663c34 | dc53110836824701291cf8cdde2fe6c0b2171f4f | 2023-06-16T07:12:36Z | go | 2023-06-16T14:55:19Z | internal/mage/sdk/elixir.go | WithExec(args).
Sync(ctx)
return err
}
func (Elixir) Bump(ctx context.Context, engineVersion string) error {
contents, err := os.ReadFile(elixirSDKVersionFilePath)
if err != nil {
return err
}
newVersion := fmt.Sprintf(`@dagger_cli_version "%s"`, strings.TrimPrefix(engineVersion, "v"))
versionRe, err := regexp.Compile(`@dagger_cli_version "([0-9\.-a-zA-Z]+)"`)
if err != nil {
return err
}
newContents := versionRe.ReplaceAll(contents, []byte(newVersion))
return os.WriteFile(elixirSDKVersionFilePath, newContents, 0o600)
}
func elixirBase(c *dagger.Client) *dagger.Container {
const appDir = "sdk/elixir"
src := c.Directory().WithDirectory("/", util.Repository(c).Directory(appDir))
mountPath := fmt.Sprintf("/%s", appDir)
return c.Container().
From(fmt.Sprintf("hexpm/elixir:%s-erlang-%s-debian-buster-%s-slim", elixirVersion, otpVersion, debianVersion)).
WithWorkdir(mountPath).
WithDirectory(mountPath, src).
WithExec([]string{"mix", "local.hex", "--force"}).
WithExec([]string{"mix", "local.rebar", "--force"}).
WithExec([]string{"mix", "deps.get"})
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | package schema
import (
"github.com/dagger/dagger/core"
"github.com/dagger/dagger/core/pipeline"
"github.com/dagger/dagger/router"
"github.com/moby/buildkit/client/llb"
)
var _ router.ExecutableSchema = &gitSchema{}
type gitSchema struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | *baseSchema
}
func (s *gitSchema) Name() string {
return "git"
}
func (s *gitSchema) Schema() string {
return Git
}
func (s *gitSchema) Resolvers() router.Resolvers {
return router.Resolvers{
"Query": router.ObjectResolver{
"git": router.ToResolver(s.git),
},
"GitRepository": router.ObjectResolver{
"branches": router.ToResolver(s.branches),
"branch": router.ToResolver(s.branch),
"tags": router.ToResolver(s.tags),
"tag": router.ToResolver(s.tag),
"commit": router.ToResolver(s.commit),
},
"GitRef": router.ObjectResolver{
"digest": router.ToResolver(s.digest),
"tree": router.ToResolver(s.tree),
},
}
}
func (s *gitSchema) Dependencies() []router.ExecutableSchema {
return nil
}
type gitRepository struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | URL string `json:"url"`
KeepGitDir bool `json:"keepGitDir"`
Pipeline pipeline.Path `json:"pipeline"`
ServiceHost *core.ContainerID `json:"serviceHost,omitempty"`
}
type gitRef struct {
Repository gitRepository
Name string
}
type gitArgs struct {
URL string `json:"url"`
KeepGitDir bool `json:"keepGitDir"`
ExperimentalServiceHost *core.ContainerID `json:"experimentalServiceHost"`
}
func (s *gitSchema) git(ctx *router.Context, parent *core.Query, args gitArgs) (gitRepository, error) {
return gitRepository{
URL: args.URL,
KeepGitDir: args.KeepGitDir,
ServiceHost: args.ExperimentalServiceHost,
Pipeline: parent.PipelinePath(),
}, nil
}
type branchArgs struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | Name string
}
type commitArgs struct {
ID string
}
func (s *gitSchema) commit(ctx *router.Context, parent gitRepository, args commitArgs) (gitRef, error) {
return gitRef{
Repository: parent,
Name: args.ID,
}, nil
}
func (s *gitSchema) branch(ctx *router.Context, parent gitRepository, args branchArgs) (gitRef, error) {
return gitRef{
Repository: parent,
Name: args.Name,
}, nil
}
func (s *gitSchema) branches(ctx *router.Context, parent any, args any) (any, error) {
return nil, ErrNotImplementedYet
}
type tagArgs struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | Name string
}
func (s *gitSchema) tag(ctx *router.Context, parent gitRepository, args tagArgs) (gitRef, error) {
return gitRef{
Repository: parent,
Name: args.Name,
}, nil
}
func (s *gitSchema) tags(ctx *router.Context, parent any, args any) (any, error) {
return nil, ErrNotImplementedYet
}
func (s *gitSchema) digest(ctx *router.Context, parent any, args any) (any, error) {
return nil, ErrNotImplementedYet
}
type gitTreeArgs struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/git.go | SSHKnownHosts string `json:"sshKnownHosts"`
SSHAuthSocket core.SocketID `json:"sshAuthSocket"`
}
func (s *gitSchema) tree(ctx *router.Context, parent gitRef, args gitTreeArgs) (*core.Directory, error) {
opts := []llb.GitOption{}
if parent.Repository.KeepGitDir {
opts = append(opts, llb.KeepGitDir())
}
if args.SSHKnownHosts != "" {
opts = append(opts, llb.KnownSSHHosts(args.SSHKnownHosts))
}
if args.SSHAuthSocket != "" {
opts = append(opts, llb.MountSSHSock(args.SSHAuthSocket.LLBID()))
}
var svcs core.ServiceBindings
if parent.Repository.ServiceHost != nil {
svcs = core.ServiceBindings{*parent.Repository.ServiceHost: nil}
}
st := llb.Git(parent.Repository.URL, parent.Name, opts...)
return core.NewDirectorySt(ctx, st, "", parent.Repository.Pipeline, s.platform, svcs)
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/util.go | package schema
import (
"errors"
"fmt"
"github.com/dagger/dagger/internal/engine"
"github.com/dagger/dagger/router"
"github.com/dagger/graphql/language/ast"
)
var ErrNotImplementedYet = errors.New("not implemented yet")
var ErrServicesDisabled = fmt.Errorf("services are disabled; unset %s to enable", engine.ServicesDNSEnvName)
func stringResolver[T ~string](sample T) router.ScalarResolver { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | core/schema/util.go | return router.ScalarResolver{
Serialize: func(value any) any {
switch v := value.(type) {
case string, T:
return v
default:
panic(fmt.Sprintf("unexpected %T type %T", sample, v))
}
},
ParseValue: func(value any) any {
switch v := value.(type) {
case string:
return T(v)
default:
panic(fmt.Sprintf("unexpected %T value type %T: %+v", sample, v, v))
}
},
ParseLiteral: func(valueAST ast.Value) any {
switch valueAST := valueAST.(type) {
case *ast.StringValue:
return T(valueAST.Value)
default:
panic(fmt.Sprintf("unexpected %T literal type: %T", sample, valueAST))
}
},
}
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | package dagger
import (
"context"
"dagger.io/dagger/internal/querybuilder"
"github.com/Khan/genqlient/graphql"
)
type CacheID string
type ContainerID string
type DirectoryID string
type FileID string
type Platform string
type ProjectCommandID string
type ProjectID string
type SecretID string
type SocketID string
type BuildArg struct {
Name string `json:"name"`
Value string `json:"value"`
}
type PipelineLabel struct {
Name string `json:"name"`
Value string `json:"value"`
}
type CacheVolume struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
id *CacheID
}
func (r *CacheVolume) ID(ctx context.Context) (CacheID, error) {
if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response CacheID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *CacheVolume) XXX_GraphQLType() string {
return "CacheVolume"
}
func (r *CacheVolume) XXX_GraphQLIDType() string {
return "CacheID"
}
func (r *CacheVolume) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
type Container struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
endpoint *string
envVariable *string
exitCode *int
export *bool
hostname *string
id *ContainerID
imageRef *string
label *string
platform *Platform
publish *string
stderr *string
stdout *string
sync *ContainerID
user *string
workdir *string
}
type WithContainerFunc func(r *Container) *Container
func (r *Container) With(f WithContainerFunc) *Container {
return f(r)
}
type ContainerBuildOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Dockerfile string
BuildArgs []BuildArg
Target string
Secrets []*Secret
}
func (r *Container) Build(context *Directory, opts ...ContainerBuildOpts) *Container {
q := r.q.Select("build")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Dockerfile) {
q = q.Arg("dockerfile", opts[i].Dockerfile)
}
if !querybuilder.IsZeroValue(opts[i].BuildArgs) {
q = q.Arg("buildArgs", opts[i].BuildArgs)
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | if !querybuilder.IsZeroValue(opts[i].Target) {
q = q.Arg("target", opts[i].Target)
}
if !querybuilder.IsZeroValue(opts[i].Secrets) {
q = q.Arg("secrets", opts[i].Secrets)
}
}
q = q.Arg("context", context)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) DefaultArgs(ctx context.Context) ([]string, error) {
q := r.q.Select("defaultArgs")
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) Directory(path string) *Directory {
q := r.q.Select("directory")
q = q.Arg("path", path)
return &Directory{
q: q,
c: r.c,
}
}
type ContainerEndpointOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Port int
Scheme string
}
func (r *Container) Endpoint(ctx context.Context, opts ...ContainerEndpointOpts) (string, error) {
if r.endpoint != nil {
return *r.endpoint, nil
}
q := r.q.Select("endpoint")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Port) {
q = q.Arg("port", opts[i].Port) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
if !querybuilder.IsZeroValue(opts[i].Scheme) {
q = q.Arg("scheme", opts[i].Scheme)
}
}
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) Entrypoint(ctx context.Context) ([]string, error) {
q := r.q.Select("entrypoint")
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) EnvVariable(ctx context.Context, name string) (string, error) {
if r.envVariable != nil {
return *r.envVariable, nil
}
q := r.q.Select("envVariable")
q = q.Arg("name", name)
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) EnvVariables(ctx context.Context) ([]EnvVariable, error) {
q := r.q.Select("envVariables")
q = q.Select("name value")
type envVariables struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Name string
Value string
}
convert := func(fields []envVariables) []EnvVariable {
out := []EnvVariable{}
for i := range fields {
out = append(out, EnvVariable{name: &fields[i].Name, value: &fields[i].Value})
}
return out
}
var response []envVariables
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
type ContainerExecOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Args []string
Stdin string
RedirectStdout string
RedirectStderr string
ExperimentalPrivilegedNesting bool
}
func (r *Container) Exec(opts ...ContainerExecOpts) *Container {
q := r.q.Select("exec")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Args) {
q = q.Arg("args", opts[i].Args)
}
if !querybuilder.IsZeroValue(opts[i].Stdin) { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q = q.Arg("stdin", opts[i].Stdin)
}
if !querybuilder.IsZeroValue(opts[i].RedirectStdout) {
q = q.Arg("redirectStdout", opts[i].RedirectStdout)
}
if !querybuilder.IsZeroValue(opts[i].RedirectStderr) {
q = q.Arg("redirectStderr", opts[i].RedirectStderr)
}
if !querybuilder.IsZeroValue(opts[i].ExperimentalPrivilegedNesting) {
q = q.Arg("experimentalPrivilegedNesting", opts[i].ExperimentalPrivilegedNesting)
}
}
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) ExitCode(ctx context.Context) (int, error) {
if r.exitCode != nil {
return *r.exitCode, nil
}
q := r.q.Select("exitCode")
var response int
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ContainerExportOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | PlatformVariants []*Container
ForcedCompression ImageLayerCompression
}
func (r *Container) Export(ctx context.Context, path string, opts ...ContainerExportOpts) (bool, error) {
if r.export != nil {
return *r.export, nil
}
q := r.q.Select("export")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].PlatformVariants) {
q = q.Arg("platformVariants", opts[i].PlatformVariants)
}
if !querybuilder.IsZeroValue(opts[i].ForcedCompression) {
q = q.Arg("forcedCompression", opts[i].ForcedCompression)
}
}
q = q.Arg("path", path)
var response bool |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) ExposedPorts(ctx context.Context) ([]Port, error) {
q := r.q.Select("exposedPorts")
q = q.Select("description port protocol")
type exposedPorts struct {
Description string
Port int
Protocol NetworkProtocol
}
convert := func(fields []exposedPorts) []Port {
out := []Port{}
for i := range fields {
out = append(out, Port{description: &fields[i].Description, port: &fields[i].Port, protocol: &fields[i].Protocol})
}
return out
}
var response []exposedPorts
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
func (r *Container) File(path string) *File {
q := r.q.Select("file")
q = q.Arg("path", path)
return &File{ |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q: q,
c: r.c,
}
}
func (r *Container) From(address string) *Container {
q := r.q.Select("from")
q = q.Arg("address", address)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) FS() *Directory {
q := r.q.Select("fs")
return &Directory{
q: q,
c: r.c,
}
}
func (r *Container) Hostname(ctx context.Context) (string, error) {
if r.hostname != nil {
return *r.hostname, nil
}
q := r.q.Select("hostname")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) ID(ctx context.Context) (ContainerID, error) {
if r.id != nil { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return *r.id, nil
}
q := r.q.Select("id")
var response ContainerID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) XXX_GraphQLType() string {
return "Container"
}
func (r *Container) XXX_GraphQLIDType() string {
return "ContainerID"
}
func (r *Container) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
func (r *Container) ImageRef(ctx context.Context) (string, error) {
if r.imageRef != nil {
return *r.imageRef, nil
}
q := r.q.Select("imageRef")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ContainerImportOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Tag string
}
func (r *Container) Import(source *File, opts ...ContainerImportOpts) *Container {
q := r.q.Select("import")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Tag) {
q = q.Arg("tag", opts[i].Tag)
}
}
q = q.Arg("source", source)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) Label(ctx context.Context, name string) (string, error) {
if r.label != nil {
return *r.label, nil
}
q := r.q.Select("label")
q = q.Arg("name", name)
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
func (r *Container) Labels(ctx context.Context) ([]Label, error) {
q := r.q.Select("labels")
q = q.Select("name value")
type labels struct {
Name string
Value string
}
convert := func(fields []labels) []Label {
out := []Label{}
for i := range fields {
out = append(out, Label{name: &fields[i].Name, value: &fields[i].Value})
}
return out
}
var response []labels
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
func (r *Container) Mounts(ctx context.Context) ([]string, error) {
q := r.q.Select("mounts")
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ContainerPipelineOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Description string
Labels []PipelineLabel
}
func (r *Container) Pipeline(name string, opts ...ContainerPipelineOpts) *Container {
q := r.q.Select("pipeline")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Description) {
q = q.Arg("description", opts[i].Description)
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | if !querybuilder.IsZeroValue(opts[i].Labels) {
q = q.Arg("labels", opts[i].Labels)
}
}
q = q.Arg("name", name)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) Platform(ctx context.Context) (Platform, error) {
if r.platform != nil {
return *r.platform, nil
}
q := r.q.Select("platform")
var response Platform
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ContainerPublishOpts struct {
PlatformVariants []*Container
ForcedCompression ImageLayerCompression |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
func (r *Container) Publish(ctx context.Context, address string, opts ...ContainerPublishOpts) (string, error) {
if r.publish != nil {
return *r.publish, nil
}
q := r.q.Select("publish")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].PlatformVariants) {
q = q.Arg("platformVariants", opts[i].PlatformVariants)
}
if !querybuilder.IsZeroValue(opts[i].ForcedCompression) {
q = q.Arg("forcedCompression", opts[i].ForcedCompression)
}
}
q = q.Arg("address", address)
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) Rootfs() *Directory {
q := r.q.Select("rootfs")
return &Directory{
q: q,
c: r.c,
}
}
func (r *Container) Stderr(ctx context.Context) (string, error) {
if r.stderr != nil { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return *r.stderr, nil
}
q := r.q.Select("stderr")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) Stdout(ctx context.Context) (string, error) {
if r.stdout != nil {
return *r.stdout, nil
}
q := r.q.Select("stdout")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Container) Sync(ctx context.Context) (*Container, error) {
q := r.q.Select("sync")
return r, q.Execute(ctx, r.c)
}
func (r *Container) User(ctx context.Context) (string, error) {
if r.user != nil {
return *r.user, nil
}
q := r.q.Select("user")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ContainerWithDefaultArgsOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Args []string
}
func (r *Container) WithDefaultArgs(opts ...ContainerWithDefaultArgsOpts) *Container {
q := r.q.Select("withDefaultArgs")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Args) {
q = q.Arg("args", opts[i].Args)
}
}
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithDirectoryOpts struct {
Exclude []string
Include []string
Owner string
}
func (r *Container) WithDirectory(path string, directory *Directory, opts ...ContainerWithDirectoryOpts) *Container {
q := r.q.Select("withDirectory") |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Exclude) {
q = q.Arg("exclude", opts[i].Exclude)
}
if !querybuilder.IsZeroValue(opts[i].Include) {
q = q.Arg("include", opts[i].Include)
}
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("directory", directory)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithEntrypoint(args []string) *Container {
q := r.q.Select("withEntrypoint")
q = q.Arg("args", args)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithEnvVariableOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Expand bool
}
func (r *Container) WithEnvVariable(name string, value string, opts ...ContainerWithEnvVariableOpts) *Container {
q := r.q.Select("withEnvVariable")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Expand) {
q = q.Arg("expand", opts[i].Expand)
}
}
q = q.Arg("name", name)
q = q.Arg("value", value)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithExecOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | SkipEntrypoint bool
Stdin string
RedirectStdout string
RedirectStderr string
ExperimentalPrivilegedNesting bool
InsecureRootCapabilities bool
}
func (r *Container) WithExec(args []string, opts ...ContainerWithExecOpts) *Container {
q := r.q.Select("withExec")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].SkipEntrypoint) { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q = q.Arg("skipEntrypoint", opts[i].SkipEntrypoint)
}
if !querybuilder.IsZeroValue(opts[i].Stdin) {
q = q.Arg("stdin", opts[i].Stdin)
}
if !querybuilder.IsZeroValue(opts[i].RedirectStdout) {
q = q.Arg("redirectStdout", opts[i].RedirectStdout)
}
if !querybuilder.IsZeroValue(opts[i].RedirectStderr) {
q = q.Arg("redirectStderr", opts[i].RedirectStderr)
}
if !querybuilder.IsZeroValue(opts[i].ExperimentalPrivilegedNesting) {
q = q.Arg("experimentalPrivilegedNesting", opts[i].ExperimentalPrivilegedNesting)
}
if !querybuilder.IsZeroValue(opts[i].InsecureRootCapabilities) {
q = q.Arg("insecureRootCapabilities", opts[i].InsecureRootCapabilities)
}
}
q = q.Arg("args", args)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithExposedPortOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Protocol NetworkProtocol
Description string
}
func (r *Container) WithExposedPort(port int, opts ...ContainerWithExposedPortOpts) *Container {
q := r.q.Select("withExposedPort")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Protocol) {
q = q.Arg("protocol", opts[i].Protocol)
}
if !querybuilder.IsZeroValue(opts[i].Description) {
q = q.Arg("description", opts[i].Description)
}
}
q = q.Arg("port", port)
return &Container{
q: q,
c: r.c, |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
}
func (r *Container) WithFS(id *Directory) *Container {
q := r.q.Select("withFS")
q = q.Arg("id", id)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithFileOpts struct {
Permissions int
Owner string
}
func (r *Container) WithFile(path string, source *File, opts ...ContainerWithFileOpts) *Container {
q := r.q.Select("withFile")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Permissions) {
q = q.Arg("permissions", opts[i].Permissions)
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithLabel(name string, value string) *Container {
q := r.q.Select("withLabel")
q = q.Arg("name", name)
q = q.Arg("value", value)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithMountedCacheOpts struct {
Source *Directory
Sharing CacheSharingMode |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Owner string
}
func (r *Container) WithMountedCache(path string, cache *CacheVolume, opts ...ContainerWithMountedCacheOpts) *Container {
q := r.q.Select("withMountedCache")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Source) {
q = q.Arg("source", opts[i].Source)
}
if !querybuilder.IsZeroValue(opts[i].Sharing) {
q = q.Arg("sharing", opts[i].Sharing)
}
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("cache", cache)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithMountedDirectoryOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Owner string
}
func (r *Container) WithMountedDirectory(path string, source *Directory, opts ...ContainerWithMountedDirectoryOpts) *Container {
q := r.q.Select("withMountedDirectory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithMountedFileOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Owner string
}
func (r *Container) WithMountedFile(path string, source *File, opts ...ContainerWithMountedFileOpts) *Container {
q := r.q.Select("withMountedFile")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithMountedSecretOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Owner string
}
func (r *Container) WithMountedSecret(path string, source *Secret, opts ...ContainerWithMountedSecretOpts) *Container {
q := r.q.Select("withMountedSecret")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithMountedTemp(path string) *Container {
q := r.q.Select("withMountedTemp")
q = q.Arg("path", path)
return &Container{
q: q,
c: r.c,
}
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | type ContainerWithNewFileOpts struct {
Contents string
Permissions int
Owner string
}
func (r *Container) WithNewFile(path string, opts ...ContainerWithNewFileOpts) *Container {
q := r.q.Select("withNewFile")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Contents) {
q = q.Arg("contents", opts[i].Contents)
}
if !querybuilder.IsZeroValue(opts[i].Permissions) {
q = q.Arg("permissions", opts[i].Permissions)
}
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q = q.Arg("path", path)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithRegistryAuth(address string, username string, secret *Secret) *Container {
q := r.q.Select("withRegistryAuth")
q = q.Arg("address", address)
q = q.Arg("username", username)
q = q.Arg("secret", secret)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithRootfs(id *Directory) *Container {
q := r.q.Select("withRootfs")
q = q.Arg("id", id)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithSecretVariable(name string, secret *Secret) *Container {
q := r.q.Select("withSecretVariable")
q = q.Arg("name", name)
q = q.Arg("secret", secret)
return &Container{
q: q, |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | c: r.c,
}
}
func (r *Container) WithServiceBinding(alias string, service *Container) *Container {
q := r.q.Select("withServiceBinding")
q = q.Arg("alias", alias)
q = q.Arg("service", service)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithUnixSocketOpts struct {
Owner string
}
func (r *Container) WithUnixSocket(path string, source *Socket, opts ...ContainerWithUnixSocketOpts) *Container {
q := r.q.Select("withUnixSocket")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Owner) {
q = q.Arg("owner", opts[i].Owner)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithUser(name string) *Container {
q := r.q.Select("withUser")
q = q.Arg("name", name)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithWorkdir(path string) *Container {
q := r.q.Select("withWorkdir")
q = q.Arg("path", path)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithoutEnvVariable(name string) *Container {
q := r.q.Select("withoutEnvVariable")
q = q.Arg("name", name)
return &Container{
q: q,
c: r.c,
}
}
type ContainerWithoutExposedPortOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Protocol NetworkProtocol
}
func (r *Container) WithoutExposedPort(port int, opts ...ContainerWithoutExposedPortOpts) *Container {
q := r.q.Select("withoutExposedPort")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Protocol) {
q = q.Arg("protocol", opts[i].Protocol)
}
}
q = q.Arg("port", port)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithoutLabel(name string) *Container {
q := r.q.Select("withoutLabel")
q = q.Arg("name", name)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithoutMount(path string) *Container {
q := r.q.Select("withoutMount")
q = q.Arg("path", path)
return &Container{ |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q: q,
c: r.c,
}
}
func (r *Container) WithoutRegistryAuth(address string) *Container {
q := r.q.Select("withoutRegistryAuth")
q = q.Arg("address", address)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) WithoutUnixSocket(path string) *Container {
q := r.q.Select("withoutUnixSocket")
q = q.Arg("path", path)
return &Container{
q: q,
c: r.c,
}
}
func (r *Container) Workdir(ctx context.Context) (string, error) {
if r.workdir != nil {
return *r.workdir, nil
}
q := r.q.Select("workdir")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Directory struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
export *bool
id *DirectoryID
}
type WithDirectoryFunc func(r *Directory) *Directory
func (r *Directory) With(f WithDirectoryFunc) *Directory {
return f(r)
}
func (r *Directory) Diff(other *Directory) *Directory {
q := r.q.Select("diff")
q = q.Arg("other", other)
return &Directory{
q: q,
c: r.c,
}
}
func (r *Directory) Directory(path string) *Directory {
q := r.q.Select("directory")
q = q.Arg("path", path)
return &Directory{
q: q,
c: r.c,
}
}
type DirectoryDockerBuildOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Dockerfile string
Platform Platform
BuildArgs []BuildArg
Target string
Secrets []*Secret
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | func (r *Directory) DockerBuild(opts ...DirectoryDockerBuildOpts) *Container {
q := r.q.Select("dockerBuild")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Dockerfile) {
q = q.Arg("dockerfile", opts[i].Dockerfile)
}
if !querybuilder.IsZeroValue(opts[i].Platform) {
q = q.Arg("platform", opts[i].Platform)
}
if !querybuilder.IsZeroValue(opts[i].BuildArgs) {
q = q.Arg("buildArgs", opts[i].BuildArgs)
}
if !querybuilder.IsZeroValue(opts[i].Target) {
q = q.Arg("target", opts[i].Target)
}
if !querybuilder.IsZeroValue(opts[i].Secrets) {
q = q.Arg("secrets", opts[i].Secrets)
}
}
return &Container{
q: q,
c: r.c,
}
}
type DirectoryEntriesOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Path string
}
func (r *Directory) Entries(ctx context.Context, opts ...DirectoryEntriesOpts) ([]string, error) {
q := r.q.Select("entries")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Path) {
q = q.Arg("path", opts[i].Path)
}
}
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Directory) Export(ctx context.Context, path string) (bool, error) {
if r.export != nil {
return *r.export, nil
}
q := r.q.Select("export")
q = q.Arg("path", path)
var response bool
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Directory) File(path string) *File { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q := r.q.Select("file")
q = q.Arg("path", path)
return &File{
q: q,
c: r.c,
}
}
func (r *Directory) ID(ctx context.Context) (DirectoryID, error) {
if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response DirectoryID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Directory) XXX_GraphQLType() string {
return "Directory"
}
func (r *Directory) XXX_GraphQLIDType() string {
return "DirectoryID"
}
func (r *Directory) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
type DirectoryPipelineOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Description string
Labels []PipelineLabel
}
func (r *Directory) Pipeline(name string, opts ...DirectoryPipelineOpts) *Directory {
q := r.q.Select("pipeline")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Description) {
q = q.Arg("description", opts[i].Description)
}
if !querybuilder.IsZeroValue(opts[i].Labels) {
q = q.Arg("labels", opts[i].Labels)
}
}
q = q.Arg("name", name)
return &Directory{
q: q,
c: r.c,
}
}
type DirectoryWithDirectoryOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Exclude []string
Include []string
}
func (r *Directory) WithDirectory(path string, directory *Directory, opts ...DirectoryWithDirectoryOpts) *Directory {
q := r.q.Select("withDirectory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Exclude) {
q = q.Arg("exclude", opts[i].Exclude)
}
if !querybuilder.IsZeroValue(opts[i].Include) {
q = q.Arg("include", opts[i].Include)
}
}
q = q.Arg("path", path)
q = q.Arg("directory", directory)
return &Directory{
q: q,
c: r.c,
}
}
type DirectoryWithFileOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Permissions int
}
func (r *Directory) WithFile(path string, source *File, opts ...DirectoryWithFileOpts) *Directory {
q := r.q.Select("withFile")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Permissions) {
q = q.Arg("permissions", opts[i].Permissions)
}
}
q = q.Arg("path", path)
q = q.Arg("source", source)
return &Directory{
q: q,
c: r.c,
}
}
type DirectoryWithNewDirectoryOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Permissions int
}
func (r *Directory) WithNewDirectory(path string, opts ...DirectoryWithNewDirectoryOpts) *Directory {
q := r.q.Select("withNewDirectory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Permissions) {
q = q.Arg("permissions", opts[i].Permissions)
}
}
q = q.Arg("path", path)
return &Directory{
q: q,
c: r.c,
}
}
type DirectoryWithNewFileOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Permissions int
}
func (r *Directory) WithNewFile(path string, contents string, opts ...DirectoryWithNewFileOpts) *Directory {
q := r.q.Select("withNewFile")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Permissions) {
q = q.Arg("permissions", opts[i].Permissions)
}
}
q = q.Arg("path", path)
q = q.Arg("contents", contents) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return &Directory{
q: q,
c: r.c,
}
}
func (r *Directory) WithTimestamps(timestamp int) *Directory {
q := r.q.Select("withTimestamps")
q = q.Arg("timestamp", timestamp)
return &Directory{
q: q,
c: r.c,
}
}
func (r *Directory) WithoutDirectory(path string) *Directory {
q := r.q.Select("withoutDirectory")
q = q.Arg("path", path)
return &Directory{
q: q,
c: r.c,
}
}
func (r *Directory) WithoutFile(path string) *Directory {
q := r.q.Select("withoutFile")
q = q.Arg("path", path)
return &Directory{
q: q,
c: r.c,
}
}
type EnvVariable struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
name *string
value *string
}
func (r *EnvVariable) Name(ctx context.Context) (string, error) {
if r.name != nil {
return *r.name, nil
}
q := r.q.Select("name")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *EnvVariable) Value(ctx context.Context) (string, error) {
if r.value != nil {
return *r.value, nil
}
q := r.q.Select("value")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type File struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
contents *string
export *bool
id *FileID
size *int
}
func (r *File) Contents(ctx context.Context) (string, error) {
if r.contents != nil {
return *r.contents, nil
}
q := r.q.Select("contents")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type FileExportOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | AllowParentDirPath bool
}
func (r *File) Export(ctx context.Context, path string, opts ...FileExportOpts) (bool, error) {
if r.export != nil {
return *r.export, nil
}
q := r.q.Select("export")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].AllowParentDirPath) {
q = q.Arg("allowParentDirPath", opts[i].AllowParentDirPath)
}
}
q = q.Arg("path", path)
var response bool
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *File) ID(ctx context.Context) (FileID, error) { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response FileID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *File) XXX_GraphQLType() string {
return "File"
}
func (r *File) XXX_GraphQLIDType() string {
return "FileID"
}
func (r *File) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
func (r *File) Secret() *Secret {
q := r.q.Select("secret")
return &Secret{
q: q,
c: r.c,
}
}
func (r *File) Size(ctx context.Context) (int, error) {
if r.size != nil { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return *r.size, nil
}
q := r.q.Select("size")
var response int
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *File) WithTimestamps(timestamp int) *File {
q := r.q.Select("withTimestamps")
q = q.Arg("timestamp", timestamp)
return &File{
q: q,
c: r.c,
}
}
type GitRef struct {
q *querybuilder.Selection
c graphql.Client
digest *string
}
func (r *GitRef) Digest(ctx context.Context) (string, error) {
if r.digest != nil {
return *r.digest, nil
}
q := r.q.Select("digest")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type GitRefTreeOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | SSHKnownHosts string
SSHAuthSocket *Socket
}
func (r *GitRef) Tree(opts ...GitRefTreeOpts) *Directory {
q := r.q.Select("tree")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].SSHKnownHosts) {
q = q.Arg("sshKnownHosts", opts[i].SSHKnownHosts)
}
if !querybuilder.IsZeroValue(opts[i].SSHAuthSocket) {
q = q.Arg("sshAuthSocket", opts[i].SSHAuthSocket)
}
}
return &Directory{
q: q,
c: r.c,
}
}
type GitRepository struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
}
func (r *GitRepository) Branch(name string) *GitRef {
q := r.q.Select("branch")
q = q.Arg("name", name)
return &GitRef{
q: q,
c: r.c,
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
func (r *GitRepository) Branches(ctx context.Context) ([]string, error) {
q := r.q.Select("branches")
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *GitRepository) Commit(id string) *GitRef {
q := r.q.Select("commit")
q = q.Arg("id", id)
return &GitRef{
q: q,
c: r.c,
}
}
func (r *GitRepository) Tag(name string) *GitRef {
q := r.q.Select("tag")
q = q.Arg("name", name)
return &GitRef{
q: q,
c: r.c,
}
}
func (r *GitRepository) Tags(ctx context.Context) ([]string, error) {
q := r.q.Select("tags")
var response []string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Host struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
}
type HostDirectoryOpts struct {
Exclude []string
Include []string
}
func (r *Host) Directory(path string, opts ...HostDirectoryOpts) *Directory {
q := r.q.Select("directory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Exclude) {
q = q.Arg("exclude", opts[i].Exclude)
}
if !querybuilder.IsZeroValue(opts[i].Include) {
q = q.Arg("include", opts[i].Include)
}
}
q = q.Arg("path", path) |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | return &Directory{
q: q,
c: r.c,
}
}
func (r *Host) EnvVariable(name string) *HostVariable {
q := r.q.Select("envVariable")
q = q.Arg("name", name)
return &HostVariable{
q: q,
c: r.c,
}
}
func (r *Host) File(path string) *File {
q := r.q.Select("file")
q = q.Arg("path", path)
return &File{
q: q,
c: r.c,
}
}
func (r *Host) UnixSocket(path string) *Socket {
q := r.q.Select("unixSocket")
q = q.Arg("path", path)
return &Socket{
q: q,
c: r.c,
}
}
type HostWorkdirOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Exclude []string
Include []string
}
func (r *Host) Workdir(opts ...HostWorkdirOpts) *Directory {
q := r.q.Select("workdir")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Exclude) {
q = q.Arg("exclude", opts[i].Exclude)
}
if !querybuilder.IsZeroValue(opts[i].Include) {
q = q.Arg("include", opts[i].Include)
}
}
return &Directory{
q: q,
c: r.c,
}
}
type HostVariable struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
value *string
}
func (r *HostVariable) Secret() *Secret {
q := r.q.Select("secret")
return &Secret{
q: q,
c: r.c,
}
}
func (r *HostVariable) Value(ctx context.Context) (string, error) {
if r.value != nil {
return *r.value, nil
}
q := r.q.Select("value")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Label struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
name *string
value *string
}
func (r *Label) Name(ctx context.Context) (string, error) {
if r.name != nil {
return *r.name, nil
}
q := r.q.Select("name")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Label) Value(ctx context.Context) (string, error) {
if r.value != nil {
return *r.value, nil
}
q := r.q.Select("value")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Port struct {
q *querybuilder.Selection
c graphql.Client
description *string
port *int |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | protocol *NetworkProtocol
}
func (r *Port) Description(ctx context.Context) (string, error) {
if r.description != nil {
return *r.description, nil
}
q := r.q.Select("description")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Port) Port(ctx context.Context) (int, error) {
if r.port != nil {
return *r.port, nil
}
q := r.q.Select("port")
var response int
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Port) Protocol(ctx context.Context) (NetworkProtocol, error) {
if r.protocol != nil {
return *r.protocol, nil
}
q := r.q.Select("protocol")
var response NetworkProtocol
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type Project struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
id *ProjectID
name *string
}
func (r *Project) Commands(ctx context.Context) ([]ProjectCommand, error) {
q := r.q.Select("commands")
q = q.Select("description id name resultType")
type commands struct {
Description string
Id ProjectCommandID
Name string
ResultType string
}
convert := func(fields []commands) []ProjectCommand {
out := []ProjectCommand{}
for i := range fields {
out = append(out, ProjectCommand{description: &fields[i].Description, id: &fields[i].Id, name: &fields[i].Name, resultType: &fields[i].ResultType})
}
return out
}
var response []commands
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
func (r *Project) ID(ctx context.Context) (ProjectID, error) { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id")
var response ProjectID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Project) XXX_GraphQLType() string {
return "Project"
}
func (r *Project) XXX_GraphQLIDType() string {
return "ProjectID"
}
func (r *Project) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
func (r *Project) Load(source *Directory, configPath string) *Project {
q := r.q.Select("load")
q = q.Arg("source", source)
q = q.Arg("configPath", configPath)
return &Project{
q: q,
c: r.c,
}
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | func (r *Project) Name(ctx context.Context) (string, error) {
if r.name != nil {
return *r.name, nil
}
q := r.q.Select("name")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type ProjectCommand struct {
q *querybuilder.Selection
c graphql.Client
description *string
id *ProjectCommandID
name *string
resultType *string
}
func (r *ProjectCommand) Description(ctx context.Context) (string, error) {
if r.description != nil {
return *r.description, nil
}
q := r.q.Select("description")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *ProjectCommand) Flags(ctx context.Context) ([]ProjectCommandFlag, error) {
q := r.q.Select("flags")
q = q.Select("description name")
type flags struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Description string
Name string
}
convert := func(fields []flags) []ProjectCommandFlag {
out := []ProjectCommandFlag{}
for i := range fields {
out = append(out, ProjectCommandFlag{description: &fields[i].Description, name: &fields[i].Name})
}
return out
}
var response []flags
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
func (r *ProjectCommand) ID(ctx context.Context) (ProjectCommandID, error) {
if r.id != nil {
return *r.id, nil
}
q := r.q.Select("id") |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | var response ProjectCommandID
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *ProjectCommand) XXX_GraphQLType() string {
return "ProjectCommand"
}
func (r *ProjectCommand) XXX_GraphQLIDType() string {
return "ProjectCommandID"
}
func (r *ProjectCommand) XXX_GraphQLID(ctx context.Context) (string, error) {
id, err := r.ID(ctx)
if err != nil {
return "", err
}
return string(id), nil
}
func (r *ProjectCommand) Name(ctx context.Context) (string, error) {
if r.name != nil {
return *r.name, nil
}
q := r.q.Select("name")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *ProjectCommand) ResultType(ctx context.Context) (string, error) {
if r.resultType != nil {
return *r.resultType, nil
} |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q := r.q.Select("resultType")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *ProjectCommand) Subcommands(ctx context.Context) ([]ProjectCommand, error) {
q := r.q.Select("subcommands")
q = q.Select("description id name resultType")
type subcommands struct {
Description string
Id ProjectCommandID
Name string
ResultType string
}
convert := func(fields []subcommands) []ProjectCommand {
out := []ProjectCommand{}
for i := range fields {
out = append(out, ProjectCommand{description: &fields[i].Description, id: &fields[i].Id, name: &fields[i].Name, resultType: &fields[i].ResultType})
}
return out
}
var response []subcommands
q = q.Bind(&response)
err := q.Execute(ctx, r.c)
if err != nil {
return nil, err
}
return convert(response), nil
}
type ProjectCommandFlag struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q *querybuilder.Selection
c graphql.Client
description *string
name *string
}
func (r *ProjectCommandFlag) Description(ctx context.Context) (string, error) {
if r.description != nil {
return *r.description, nil
}
q := r.q.Select("description")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *ProjectCommandFlag) Name(ctx context.Context) (string, error) {
if r.name != nil {
return *r.name, nil
}
q := r.q.Select("name")
var response string
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
func (r *Client) CacheVolume(key string) *CacheVolume {
q := r.q.Select("cacheVolume")
q = q.Arg("key", key)
return &CacheVolume{
q: q,
c: r.c, |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | }
}
type ContainerOpts struct {
ID ContainerID
Platform Platform
}
func (r *Client) Container(opts ...ContainerOpts) *Container {
q := r.q.Select("container")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
if !querybuilder.IsZeroValue(opts[i].Platform) {
q = q.Arg("platform", opts[i].Platform)
}
}
return &Container{
q: q,
c: r.c,
}
}
func (r *Client) DefaultPlatform(ctx context.Context) (Platform, error) {
q := r.q.Select("defaultPlatform")
var response Platform
q = q.Bind(&response)
return response, q.Execute(ctx, r.c)
}
type DirectoryOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | ID DirectoryID
}
func (r *Client) Directory(opts ...DirectoryOpts) *Directory {
q := r.q.Select("directory")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ID) {
q = q.Arg("id", opts[i].ID)
}
}
return &Directory{
q: q,
c: r.c,
}
}
func (r *Client) File(id FileID) *File {
q := r.q.Select("file")
q = q.Arg("id", id)
return &File{
q: q,
c: r.c,
}
}
type GitOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | KeepGitDir bool
ExperimentalServiceHost *Container
}
func (r *Client) Git(url string, opts ...GitOpts) *GitRepository {
q := r.q.Select("git")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].KeepGitDir) {
q = q.Arg("keepGitDir", opts[i].KeepGitDir)
}
if !querybuilder.IsZeroValue(opts[i].ExperimentalServiceHost) {
q = q.Arg("experimentalServiceHost", opts[i].ExperimentalServiceHost)
}
}
q = q.Arg("url", url)
return &GitRepository{ |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | q: q,
c: r.c,
}
}
func (r *Client) Host() *Host {
q := r.q.Select("host")
return &Host{
q: q,
c: r.c,
}
}
type HTTPOpts struct {
ExperimentalServiceHost *Container
}
func (r *Client) HTTP(url string, opts ...HTTPOpts) *File {
q := r.q.Select("http")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].ExperimentalServiceHost) {
q = q.Arg("experimentalServiceHost", opts[i].ExperimentalServiceHost)
}
}
q = q.Arg("url", url)
return &File{
q: q,
c: r.c,
}
}
type PipelineOpts struct { |
closed | dagger/dagger | https://github.com/dagger/dagger | 5,367 | π Unable to get digest of GitRef | ### What is the issue?
Calling `digest()` on a GitRef object instance fails with `dagger.exceptions.QueryError: not implemented yet` exception
### Log output
```
Connected to engine 974d679fe8b2
Traceback (most recent call last):
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 170, in _handle_execute
yield
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 107, in execute
result = await self.session.execute(query)
File "<PATH>/lib/python3.10/site-packages/gql/client.py", line 1231, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'not implemented yet', 'locations': [{'line': 4, 'column': 7}], 'path': ['git', 'branch', 'digest']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<PATH>/.github/workflows/minimal.py", line 13, in <module>
anyio.run(main)
File "<PATH>/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "<PATH>/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "<PATH>/.github/workflows/minimal.py", line 10, in main
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
File "<@beartype(dagger.api.gen.GitRef.digest) at 0x7f282ca6f6d0>", line 10, in digest
File "<PATH>/lib/python3.10/site-packages/dagger/api/gen.py", line 2155, in digest
return await _ctx.execute(str)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 106, in execute
with self._handle_execute(query):
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "<PATH>/lib/python3.10/site-packages/dagger/api/base.py", line 196, in _handle_execute
raise error from e
dagger.exceptions.QueryError: not implemented yet
```
### Steps to reproduce
```python3
import sys, anyio, dagger
async def main():
config = dagger.Config(log_output=sys.stdout)
async with dagger.Connection(config) as client:
git_digest = await client.git("https://github.com/dagger/examples.git").branch("main").digest()
print(git_digest)
anyio.run(main)
```
### SDK version
Python SDK v0.6.2
### OS version
Linux Mint 21.1, Python 3.10 | https://github.com/dagger/dagger/issues/5367 | https://github.com/dagger/dagger/pull/5410 | 92e7a4b1d23e0f4bb67f38cf0cbbbc5e82298e4e | 9ec0d6a9625c85655e8d82f241771470fe6998aa | 2023-06-25T11:51:01Z | go | 2023-07-06T13:15:25Z | sdk/go/api.gen.go | Description string
Labels []PipelineLabel
}
func (r *Client) Pipeline(name string, opts ...PipelineOpts) *Client {
q := r.q.Select("pipeline")
for i := len(opts) - 1; i >= 0; i-- {
if !querybuilder.IsZeroValue(opts[i].Description) {
q = q.Arg("description", opts[i].Description)
}
if !querybuilder.IsZeroValue(opts[i].Labels) {
q = q.Arg("labels", opts[i].Labels)
}
}
q = q.Arg("name", name)
return &Client{
q: q,
c: r.c,
}
}
type ProjectOpts struct { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.