Here's a snippet of the logs. I'm lost - I worked on this yesterday for a long time and still can't get it to work. I did drop the 'with: module: demo' part from the GHA - either way same issue.
- name: Run Dagger
env:
HOOK: "https://hooks.slack.com/services/xxxxxxxx"
uses: dagger/dagger-for-github@v5
with:
workdir: ${{github.workspace}}/dagger_io/demo
version: 0.11.6
verb: functions
args: send-slack-message --message frompipeline --webhook %HOOK%
13:32:06 INF Connected to engine name=5bc15fdd28fe version=v0.11.6
6 : connecting to engine DONE [2.1s]
7 : starting session
7 : starting session DONE [0.2s]
1 : connect DONE [8.5s]
8 : initialize
9 : ModuleSource.asModule: Module!
9 : ModuleSource.asModule: Module! ERROR [5.9s]
9 : ! failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to get modified source directory for go module sdk codegen: select: process "/usr/local/bin/codegen --output /src --module-context-path /src/dagger_io/demo/dagger --module-name demo --introspection-json-path /schema.json" did not complete successfully: exit code: 1
8 : initialize ERROR [5.9s]
8 : ! input: moduleSource.withContextDirectory.asModule resolve: failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to get modified source directory for go module sdk codegen: select: process "/usr/local/bin/codegen --output /src --module-context-path /src/dagger_io/demo/dagger --module-name demo --introspection-json-path /schema.json" did not complete successfully: exit code: 1