Skip to content
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

Update build and sign pipeline of Az.Tools.Predictor #17768

Merged
merged 7 commits into from
Apr 14, 2022

Conversation

dingmeng-xue
Copy link
Member

@dingmeng-xue dingmeng-xue commented Apr 11, 2022

Description

  • Update Az.Tools.Predictor.SourceGenerator.csproj to generate the source code before build
  • Update pipeline and install PowerShell 7.2 and PSReadLine
  • Add ErrorAction Stop to stop pipeline if there is any issue during help generation

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

kceiw
kceiw previously approved these changes Apr 11, 2022
@@ -41,8 +41,10 @@ For more information on Az Predictor, please visit the following: https://aka.ms
PowerShellVersion = '7.2'

# Modules that must be imported into the global environment prior to importing this module
# "RequiredModules" requires the module in the build pipeline to build/sign this package. Instead, we will validate the dependencies at runtime by Az.Tools.Predictor.psm1
RequiredModules = @(@{ModuleName = 'PSReadLine'; ModuleVersion = '2.2.2'; },
@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.5';})
Copy link
Contributor

Choose a reason for hiding this comment

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

Is dependency on Az.Accounts needed? Az.ToolsPredictor doesn't use anything directly from Az.Accounts.

Copy link
Member Author

Choose a reason for hiding this comment

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

It needs share assembly imported by Az.Accounts.

@dingmeng-xue dingmeng-xue merged commit 66ef728 into main Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants