OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.91k stars 2.55k forks source link

CI Mac Homebrew: workaround issue with latest hdf5 package #10890

Closed rouault closed 1 month ago

rouault commented 1 month ago

Cf https://github.com/Homebrew/homebrew-core/pull/170959#issuecomment-2379606442

rouault commented 1 month ago

The backport to release/3.9 failed:

The process '/usr/bin/git' failed with exit code 1
stderr ``` To https://github.com/OSGeo/gdal.git ! [remote rejected] backport-10890-to-release/3.9 -> backport-10890-to-release/3.9 (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/cmake_builds.yml` without `workflow` scope) error: failed to push some refs to 'https://github.com/OSGeo/gdal.git' ```

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release/3.9 release/3.9
# Navigate to the new working tree
cd .worktrees/backport-release/3.9
# Create a new branch
git switch --create backport-10890-to-release/3.9
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 27cab6c52e5f6b04c776ed66ae791deaa169d842
# Push it to GitHub
git push --set-upstream origin backport-10890-to-release/3.9
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release/3.9

Then, create a pull request where the base branch is release/3.9 and the compare/head branch is backport-10890-to-release/3.9.

rouault commented 1 month ago

backported in 8e41c201c085e6f3095c2abd5b11d2a9b64e8866