#Issue when upgrading to 0.11.0

1 messages · Page 1 of 1 (latest)

median field
#

Hi, I have been upgrading to the latest Dagger version but I can no longer run my workflow. I am getting the following error.

✘ initialize 2.2s
! input: module.withSource.initialize resolve: failed to initialize module: failed to call module "jumppad-ci" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1

Stderr:
# main
./dagger.gen.go:630:8: undefined: telemetry
./dagger.gen.go:635:8: undefined: telemetry
  ✔ ModuleSource.asModule: Module! 1.7s
  ✘ Module.initialize: Module! 0.4s
  ! failed to initialize module: failed to call module "jumppad-ci" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
    ✘ exec go build -o /runtime . 0.4s
    ! process "go build -o /runtime ." did not complete successfully: exit code: 1
    ┃ # main                                                                                                                                                                                                                                                                                                                                                                         
    ┃ ./dagger.gen.go:630:8: undefined: telemetry                                                                                                                                                                                                                                                                                                                                    
    ┃ ./dagger.gen.go:635:8: undefined: telemetry                                                                                                                                                                                                                                                                                                                                    

Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "jumppad-ci" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1

Stderr:
# main
./dagger.gen.go:630:8: undefined: telemetry
./dagger.gen.go:635:8: undefined: telemetry

I have upgraded all the modules to the latest for this but still the same error.

jolly wing
#

@median field can you try running dagger develop first and check if the problem still persists?

median field
#

Yeah I did try that, it seems that the import "main/internal/telemetry" is not being added to the dagger.gen.go

#
import (
    "context"
    "encoding/json"
    "fmt"
    "log/slog"
    "os"

    "main/internal/dagger"

    "go.opentelemetry.io/otel"
    "go.opentelemetry.io/otel/attribute"
    "go.opentelemetry.io/otel/sdk/resource"
    semconv "go.opentelemetry.io/otel/semconv/v1.4.0"
    "go.opentelemetry.io/otel/trace"
)```
#

I just checked my modules that I upgraded and they worked correctly

jolly wing
median field
#

It is the main module, all my daggerverse stuff seems fine

#

I have tested one of them independently

jolly wing
median field
#

let me push the new stuff to a branch

#

Ah I see that one module is still linked to 0.9.9

jolly wing
median field
#

It is in a referenced module

#

I updated things but it does not seem to have helped

jolly wing
#

🕵️

median field
#

I have double checked all the deps and still same problem,

jolly wing
#

@granite elbow I think it might be related to the .dagger folder name

#

since IIRC that's not a valid go package

median field
#

Ok, that used to work but is the main difference

#

testing

#

yeah

#

the include is there now

#

Testing but this is looking good

jolly wing
# median field Testing but this is looking good

👍 FWIW I think this is actually a bug since the internal/dagger package seems to be imported correctly but not the telemetry one for some reason. Have time to open an issue in GH Nic? 🙏

median field
#

100%

#

Let me run these automated tests to double check this fix works and then I will open

median field