Skip to content

fix(dotnet): simplify build tool lookup#835

Open
sriram-mv wants to merge 1 commit intoaws:developfrom
sriram-mv:issue_347
Open

fix(dotnet): simplify build tool lookup#835
sriram-mv wants to merge 1 commit intoaws:developfrom
sriram-mv:issue_347

Conversation

@sriram-mv
Copy link
Contributor

Issue #, if available:

#347

Description of changes

Simplify check to purely check for existence of the tool and not attempt to install it every time. If it doesnt exist, install it. The global installation action's lifecycle is a build command which terminates, so its not saved anywhere. I think this is cleaner.

Description of how you validated changes

Unit tests work.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sriram-mv sriram-mv requested a review from a team as a code owner February 19, 2026 19:06
@github-actions github-actions bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. area/workflow/dotnet_clipackage labels Feb 19, 2026
self.subprocess_dotnet.run.assert_any_call(
["tool", "update", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"]
)
self.subprocess_dotnet.run.assert_called_once_with(["tool", "list", "-g"])
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also assert below this that the actual install is not done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/workflow/dotnet_clipackage pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments