Skip to content

fix(plugin): add pac 2.3.2 version check and improve auth error handling#238

Merged
ansjain215 merged 1 commit intomainfrom
users/ansjain/PluginFixes
Mar 7, 2026
Merged

fix(plugin): add pac 2.3.2 version check and improve auth error handling#238
ansjain215 merged 1 commit intomainfrom
users/ansjain/PluginFixes

Conversation

@ansjain215
Copy link
Copy Markdown
Contributor

  • Block pac version 2.3.2 across all prerequisite checks due to known bug where pac code push fails with TypeError: Cannot read properties of undefined (reading 'httpClient'); instruct upgrade or fallback to 2.2.1
  • Fix pac version check command: pac --version is not a valid flag; use plain pac and read Version: line from output header
  • Update deploy failure flow to always run pac auth list first, then pac env select before falling back to pac auth create

- Block pac version 2.3.2 across all prerequisite checks due to known
  bug where pac code push fails with TypeError: Cannot read properties
  of undefined (reading 'httpClient'); instruct upgrade or fallback to 2.2.1
- Fix pac version check command: pac --version is not a valid flag;
  use plain pac and read Version: line from output header
- Update deploy failure flow to always run pac auth list first, then
  pac env select before falling back to pac auth create

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ansjain215
Copy link
Copy Markdown
Contributor Author

@ansjain215 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"

@ansjain215 ansjain215 merged commit 22e3dcb into main Mar 7, 2026
4 checks passed
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.

3 participants