Repository navigation
Go SDK: split out from Engine - #3425
Conversation
71db401 to
60babf2
Compare
30860e3 to
e3b41bb
Compare
Signed-off-by: Andrea Luzzardi <[email protected]>
Signed-off-by: Andrea Luzzardi <[email protected]>
0b6402d to
d2a2fd6
Compare
Signed-off-by: Andrea Luzzardi <[email protected]>
Signed-off-by: Andrea Luzzardi <[email protected]>
d2a2fd6 to
11d14d9
Compare
There was a problem hiding this comment.
Guessing this had to change because go run doesn't work across module boundaries?
Is this the new flow for regenerating the SDK?
go install ./cmd/dagger
go generate ./...If so that's fine (I assumed it already worked that way). Or does go generate similarly not traverse across module boundaries?
Side note: since we have replace github.com/dagger/dagger => ../ in the SDK go.mod, I wonder if this works?:
//go:generate go run github.com/dagger/dagger/cmd/dagger ...If the steps are anything more complicated than above I humbly request a script. :)
There was a problem hiding this comment.
Guessing this had to change because go run doesn't work across module boundaries?
Correct
Is this the new flow for regenerating the SDK?
Worse.
cd sdk/go
go generate ./...
./.. doesn't cross the go.mod boundary
Side note: since we have replace github.com/dagger/dagger => ../ in the SDK go.mod, I wonder if this works?:
Ah! Perhaps! Let me try
There was a problem hiding this comment.
If the steps are anything more complicated than above I humbly request a script. :)
Yes. Right now it looks silly, but go generate wasn't going to work with the Python and Node SDK anyway, so we needed a script anyway.
There's still time to back down from this sub-module if it becomes too annoying :)
|
This effectively changes the import path from |
|
I'm gonna try some go modules versionning and go.work, see how it could work for us. |
dagger.io/daggervanity URLgo/sdk/v0.1.*github.com/dagger/daggerv0.3.*