Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MacOS CI #2492

Closed
dzenanz opened this issue Apr 18, 2021 · 1 comment · Fixed by #2496
Closed

Fix MacOS CI #2492

dzenanz opened this issue Apr 18, 2021 · 1 comment · Fixed by #2496
Labels
type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots

Comments

@dzenanz
Copy link
Member

dzenanz commented Apr 18, 2021

Homebrew's CMake download location gives 404: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}. Seen in e.g. #2483. Here is a copy of the log:

Starting: Build and test
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.182.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/8d845d24-e341-4ad0-a9dd-d2397d5c9f47.sh
+ curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/de946dd0c0a91ecf6c78c843a4580bd7116c6bf0/Formula/cmake.rb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1917  100  1917    0     0  50447      0 --:--:-- --:--:-- --:--:-- 50447
+ brew unlink cmake
Unlinking /usr/local/Cellar/cmake/3.20.1... 36 symlinks removed.
+ brew install ./cmake.rb
Warning: Calling `cellar` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Error: Failed to load cask: ./cmake.rb
Cask 'cmake' is unreadable: wrong constant name #<Class:0x00007ff101304ec8>
Warning: Treating ./cmake.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/3.18.4
curl: (22) The requested URL returned error: 404 
Error: Failed to download resource "cmake_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/cmake/manifests/3.18.4
+ c++ --version
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
+ cmake --version
/Users/runner/work/_temp/8d845d24-e341-4ad0-a9dd-d2397d5c9f47.sh: line 8: cmake: command not found
+ ctest -S /Users/runner/work/1/ITK-dashboard/dashboard.cmake -VV -j 4
/Users/runner/work/_temp/8d845d24-e341-4ad0-a9dd-d2397d5c9f47.sh: line 10: ctest: command not found
##[error]Bash exited with code '127'.
Finishing: Build and test
@dzenanz dzenanz added the type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots label Apr 18, 2021
dzenanz added a commit to dzenanz/ITK that referenced this issue Apr 20, 2021
@thewtex
Copy link
Member

thewtex commented Apr 20, 2021

Should be addressed by #2496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants