Skip to content

[azsdk-cli] Fixes for mac install#11353

Merged
benbp merged 3 commits intoAzure:mainfrom
benbp:benbp/copilot-install-mac-fixes
Jul 25, 2025
Merged

[azsdk-cli] Fixes for mac install#11353
benbp merged 3 commits intoAzure:mainfrom
benbp:benbp/copilot-install-mac-fixes

Conversation

@benbp
Copy link
Member

@benbp benbp commented Jul 25, 2025

It seems like /usr/bin/env is more conventional than /bin/env and not all users have the latter.

Copilot AI review requested due to automatic review settings July 25, 2025 20:04
@benbp benbp added the Central-EngSys This issue is owned by the Engineering System team. label Jul 25, 2025
@benbp benbp self-assigned this Jul 25, 2025
@benbp benbp requested a review from a team as a code owner July 25, 2025 20:04
@benbp benbp added the Central-EngSys This issue is owned by the Engineering System team. label Jul 25, 2025
@benbp benbp requested review from scbedd and weshaggard July 25, 2025 20:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the shebang line in a PowerShell script to use the more portable /usr/bin/env instead of /bin/env and improves the tool installation process by ensuring the destination directory exists before copying files.

  • Updates shebang line from #!/bin/env pwsh to #!/usr/bin/env pwsh for better portability
  • Adds directory creation check before copying executable files
  • Improves file path handling in the installation process

@benbp benbp changed the title Use /usr/bin/env instead of /bin/env [azsdk-cli] Fixes for mac install Jul 25, 2025
@benbp benbp force-pushed the benbp/copilot-install-mac-fixes branch from b399b82 to 889517c Compare July 25, 2025 20:07
@benbp benbp moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Jul 25, 2025
Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

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

Tested on my mac and it works!

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@benbp benbp enabled auto-merge (squash) July 25, 2025 21:13
azure-sdk added a commit to Azure/azure-sdk-for-js that referenced this pull request Jul 25, 2025
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#11353 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
@benbp benbp merged commit 4e3dc4b into Azure:main Jul 25, 2025
10 checks passed
@benbp benbp deleted the benbp/copilot-install-mac-fixes branch July 25, 2025 21:21
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 📆🎇 Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants