-
Notifications
You must be signed in to change notification settings - Fork 14
Added --ts=dynamic parameter to state install in order to use dynamic imports.
#3681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Failing tests are test timeouts unrelated to this PR. |
| @@ -0,0 +1,60 @@ | |||
| package request | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this file from evaluate.go. All of the content here previously existed and has not changed. As you can see, it calls something called buildCommitTarget.
This PR actually calls evaluate, so that call should live in evaluate.go.
| @@ -1,12 +1,30 @@ | |||
| package request | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite what it looks like, this file's contents are entirely new. As mentioned in a prior comment, this file already existed, but called something else; it was mis-named, and I've fixed that here.
| } | ||
|
|
||
| if script.Dynamic() { | ||
| return nil, errs.New("Script cannot be a dynamic_solve") // forgot to call script.SetDynamic(false) earlier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defensive programming.
|
Note: I will be flagging Nathan for final review so-as not to overburden him with the initial review. |
Naatan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
|
@Naatan will you please force-merge this? The fact this is not a DX ticket is preventing automations from allowing a merge. Maybe consider turning off some automations to avoid this going forward. |
See https://github.com/ActiveState/TheHomeRepot/pull/16871 for an example of this in action.