Skip to content

Conversation

@mitchell-as
Copy link
Collaborator

@mitchell-as mitchell-as commented Jul 1, 2025

StoryCP-920 State Install supports Dynamic Imports

See https://github.com/ActiveState/TheHomeRepot/pull/16871 for an example of this in action.

@mitchell-as
Copy link
Collaborator Author

Failing tests are test timeouts unrelated to this PR.

@@ -0,0 +1,60 @@
package request
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Defensive programming.

@mitchell-as
Copy link
Collaborator Author

mitchell-as commented Jul 2, 2025

Note: I will be flagging Nathan for final review so-as not to overburden him with the initial review.

@mitchell-as mitchell-as requested a review from tjsanterre July 2, 2025 16:00
@mitchell-as mitchell-as requested a review from Naatan July 2, 2025 16:13
Copy link
Contributor

@Naatan Naatan left a comment

Choose a reason for hiding this comment

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

Nice work!

@mitchell-as
Copy link
Collaborator Author

@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.

@Naatan Naatan merged commit aae5b59 into master Jul 2, 2025
17 of 28 checks passed
@Naatan Naatan deleted the mitchell/cp-920 branch July 2, 2025 18:50
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.

4 participants