Skip to content

Feature/865 az mac install#1945

Open
shodiBoy1 wants to merge 2 commits into
devonfw:mainfrom
shodiBoy1:feature/865-az-mac-install
Open

Feature/865 az mac install#1945
shodiBoy1 wants to merge 2 commits into
devonfw:mainfrom
shodiBoy1:feature/865-az-mac-install

Conversation

@shodiBoy1
Copy link
Copy Markdown
Contributor

@shodiBoy1 shodiBoy1 commented May 13, 2026

This PR fixes #865

Implemented changes:

  • AzureUrlUpdater now registers macOS arm64 and x86_64 tarballs published by Microsoft on GitHub releases starting at azure-cli 2.85.0.
  • Azure commandlet sets the AZ_PYTHON environment variable on macOS, pointing to IDEasy's installed Python. Required by Microsoft's tarball launcher script.
  • CHANGELOG.adoc entry under 2026.05.001.

Checklist for this PR

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal

@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board May 13, 2026
@shodiBoy1 shodiBoy1 self-assigned this May 13, 2026
@shodiBoy1 shodiBoy1 added macOS specific for Apple MacOS az Microsoft Azure CLI labels May 13, 2026
@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 25823985525

Coverage decreased (-0.06%) to 70.621%

Details

  • Coverage decreased (-0.06%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 18 coverage regressions across 3 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

18 previously-covered lines in 3 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/tool/az/Azure.java 9 8.33%
com/devonfw/tools/ide/url/tool/az/AzureUrlUpdater.java 7 62.96%
com/devonfw/tools/ide/version/VersionSegment.java 2 88.71%

Coverage Stats

Coverage Status
Relevant Lines: 15485
Covered Lines: 11399
Line Coverage: 73.61%
Relevant Branches: 6922
Covered Branches: 4425
Branch Coverage: 63.93%
Branches in Coverage %: Yes
Coverage Strength: 3.11 hits per line

💛 - Coveralls

@shodiBoy1
Copy link
Copy Markdown
Contributor Author

@hohwille

The fix needs changes in 3 repos:

Microsoft's Mac tarball needs Python 3.13 exactly it ships pre-compiled binaries built for that version, they won't load with 3.14. With the current default 3.14* and Python.java#isIgnoreSoftwareRepo=true (one Python per project), installing az on Mac fails with:

  • Cannot satisfy dependency to python in version [3.13,3.14) for az@2.86.0[] since it is conflicting with configured version 3.14 and this tool does not support the software repository.

Before proposing the default change I checked:
nothing in IDEasy hardcodes 3.14, only pip has a Python dep and its range [3.8,) is satisfied by 3.13, tests pass, existing projects unaffected (they keep their own settings copy).

So 3.13 as default looks like the simplest fix that makes ide az work on Mac out of the box. But since it touches every new project - what do you think?

Verified locally on Mac arm64: ide az --version downloads tarball, installs Python 3.13, prints azure-cli 2.86.0.

@shodiBoy1 shodiBoy1 marked this pull request as ready for review May 13, 2026 21:20
@shodiBoy1 shodiBoy1 moved this from 🆕 New to Team Review in IDEasy board May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

az Microsoft Azure CLI macOS specific for Apple MacOS

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Az is not working on Mac x64

2 participants