Repository navigation
api: Deprecate Exec in favor of WithExec. Make args mandatory. - #3928
Merged
Merged
Conversation
aluzzardi
marked this pull request as draft
November 18, 2022 23:31
aluzzardi
force-pushed
the
withexec-mandatory-args
branch
3 times, most recently
from
November 19, 2022 01:58
282f908 to
50cd86a
Compare
sipsma
reviewed
Nov 19, 2022
Comment on lines
20
to
21
Contributor
Author
There was a problem hiding this comment.
Went crazy with replacing and did the same as TS. Fixed
aluzzardi
force-pushed
the
withexec-mandatory-args
branch
from
November 19, 2022 02:45
50cd86a to
6683393
Compare
aluzzardi
commented
Nov 19, 2022
Contributor
Author
There was a problem hiding this comment.
/cc @sipsma
Here's the catch 22: We basically have to wrap everything under WithDevEngine, otherwise it just fails (because of WithExec not existing in regular).
#3755 addresses this (/cc @vito) but I was a bit concerned about the "leaking layers".
Giving the bit of experience we gained with our pipelines, how about this alternative:
- We ditch
mage. We're not really using it anymore- It's already our own
main - Had to ditch
mg.Deps()because of false negatives - We're doing weird stuff with
sdk:allas "meta" targets
- It's already our own
- Our needs are pretty simple:
- Have a "main" do 1) bootstrap 2) dagger.Connect() (stop connecting everywhere) 3) dispatch to the right target
- Provide simple target registration/dispatching (e.g.
func init() { target.Register("engine:test", Test) })
aluzzardi
force-pushed
the
withexec-mandatory-args
branch
3 times, most recently
from
November 19, 2022 03:08
c38fcd4 to
423c8a1
Compare
aluzzardi
marked this pull request as ready for review
November 19, 2022 03:42
Contributor
Author
|
CI is finally green |
vikram-dagger
previously requested changes
Nov 19, 2022
vikram-dagger
left a comment
Contributor
There was a problem hiding this comment.
The Go SDK get started also includes references to Exec() in the text. Could you please change those @aluzzardi or I can do it in a follow-up PR?
aluzzardi
force-pushed
the
withexec-mandatory-args
branch
3 times, most recently
from
November 19, 2022 22:46
947c0c9 to
a63bae8
Compare
Signed-off-by: Andrea Luzzardi <[email protected]>
aluzzardi
force-pushed
the
withexec-mandatory-args
branch
from
November 19, 2022 22:49
a63bae8 to
be5cc57
Compare
vikram-dagger
approved these changes
Nov 21, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before:
After:
/cc @vikram-dagger @kpenfound @helderco @dolanor