Skip to content

Go: Implementation of (Container|Directory)With - #4898

Merged
helderco merged 4 commits into
dagger:mainfrom
jlongtine:dagger-with
Apr 12, 2023
Merged

helderco merged 4 commits into
dagger:mainfrom
jlongtine:dagger-with

Conversation

@jlongtine

@jlongtine jlongtine commented Apr 6, 2023 •

Copy link
Copy Markdown
Contributor

This PR implements #3885 for the Go SDK on the Container and Directory types.

@jlongtine jlongtine changed the title Quick implementation of (Container|Directory)With Implementation of (Container|Directory)With Apr 6, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to change the types it gets applied to, we just need to adjust this line.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained in:

We can do a follow up to make codegen smarter on which object types to select, instead of having to manually hardcode this. I don’t think we need to wait for that to merge this.

@jlongtine
jlongtine force-pushed the dagger-with branch 4 times, most recently from 5153fd4 to acc4b97 Compare April 6, 2023 21:35
@jlongtine
jlongtine marked this pull request as ready for review April 6, 2023 21:38
@helderco helderco changed the title Implementation of (Container|Directory)With Go: Implementation of (Container|Directory)With Apr 10, 2023

@helderco helderco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 19 to 21

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a docblock?

Joel Longtine added 4 commits April 12, 2023 14:12
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
@helderco

Copy link
Copy Markdown
Contributor

I've rebased. Will merge now and resolve drift in SDKs later.

@helderco
helderco merged commit 1fe789e into dagger:main Apr 12, 2023
@helderco helderco added the sdk/go label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants