Skip to content

IDEasy upgrade is not working on Mac M1 #1223

@jan-vcapgemini

Description

@jan-vcapgemini

Expected behavior

As an IDEasy user on Mac M1 I expect IDEasy to properly upgrade itself if I run ide upgrade.

Actual behavior

The upgrade stops with the following error message:

Running commandlet UpgradeCommandlet[upgrade]
Start: Install ideasy
Resolved version pattern *!-SNAPSHOT to version 2025.04.002-SNAPSHOT
Tool ideasy has 0 other tool(s) as dependency
Trying to download ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz from https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/2025.04.002-SNAPSHOT/ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz
Step 'ide (upgrade,--mode=snapshot)' failed: java.lang.IllegalStateException: Failed to download file from URL https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/2025.04.002-SNAPSHOT/ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz to /Users/runner/tmp/ideasy-integration-test-debug-2025-04-10_18-24-32/home-dir/projects/_ide/tmp/Downloads/ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz
Step 'Install ideasy' ended with failure.
 Step 'Install ideasy (*!-SNAPSHOT)' failed: java.lang.IllegalStateException: Failed to download file from URL https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/2025.04.002-SNAPSHOT/ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz to /Users/runner/tmp/ideasy-integration-test-debug-2025-04-10_18-24-32/home-dir/projects/_ide/tmp/Downloads/ide-cli-2025.04.002-20250409.024246-1-mac-arm64.tar.gz
2 step(s) failed out of 2 steps.
An unexpected error occurred!

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Install an old IDEasy snapshot on your Mac M1
  2. run ide upgrade

Related/Dependent Issues

Comments/Hints:

Should be easy to fix as the downloader is simply trying to download from a non existent source mac-arm64.tgz
A real IDEasy download for Mac M1 looks like this though: https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/2025.04.002-SNAPSHOT/ide-cli-2025.04.002-20250411.024252-2-mac-arm.tar.gz

Probably caused by ${arch} :

public static final MvnArtifact ARTIFACT = MvnArtifact.ofIdeasyCli("*!", "tar.gz", "${os}-${arch}");

ATTENTION (JH):
See here:

The link is correct but our deployment is wrong. We cannot change links for existing releases - only for new future releases.
We have defined standards for names of OS and architectures that we use consistently for all tools (in ide-urls).
Now we must "eat our own dogfood" and keep the conventions we made ourselves.

Affected version:

  • OS: Mac M1
  • IDEasy: 2025.04.002-SNAPSHOT

Metadata

Metadata

Labels

ARMARM CPU supportmacOSspecific for Apple MacOSreleaserelated to release commandlet and releases of IDEasy

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions