Skip to content

eng/common/native/install-cmake.sh Incompatible with macOS in arcade-validation #4204

@ellahathaway

Description

@ellahathaway

In dotnet/arcade-validation#4575, I attempted to add a macOS leg to arcade-validation. This is needed to complete dotnet/arcade#14431, which is focused on enabling signing on Mac and Linux machines.

Upon running the new macOS leg, the build fails with the following errors:

/Users/runner/work/1/s/eng/common/native/install-cmake.sh --baseuri https://netcorenativeassets.blob.core.windows.net/resource-packages/external --installpath /Users/runner/work/1/s/.tools/bin --version 3.11.1
downloading to: /Users/runner/.netcoreeng/native/temp/cmake-3.11.1-MacOS-x86_64.tar.gz
Downloading https://netcorenativeassets.blob.core.windows.net/resource-packages/external/macos/cmake/cmake-3.11.1-MacOS-x86_64.tar.gz
extracting from  /Users/runner/.netcoreeng/native/temp/cmake-3.11.1-MacOS-x86_64.tar.gz to /Users/runner/work/1/s/.tools/bin/cmake/3.11.1
Extracting /Users/runner/.netcoreeng/native/temp/cmake-3.11.1-MacOS-x86_64.tar.gz to /Users/runner/work/1/s/.tools/bin/cmake/3.11.1
Creating directory: '/Users/runner/work/1/s/.tools/bin/cmake/3.11.1'
Extracting archive
Generating '/Users/runner/work/1/s/.tools/bin/cmake.sh' shim
/Users/runner/work/1/s/eng/common/native/common-library.sh: line 154: Write-PipelineTelemetryError: command not found
/Users/runner/work/1/s/eng/common/native/install-cmake.sh: line 113: Write-PipelineTelemetryError: command not found

After speaking with @dougbu - we have discussed the following options to fix the build error:

  1. update the macOS package to match the Linux package's layout
  2. extend the install-cmake.sh script to support either package layout
  3. choose yet-another tool -- hopefully one w/ archive layouts that match between Linux and macOS

It was also discussed that something other than cmake-test may be chosen as the second tool.

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Removed test-related native-tools section from arcade-validation's global.json in 'main' branch.

Metadata

Metadata

Assignees

Labels

Ops - FacilelyOperations issues that are easily accomplished or attained

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions