-
-
Notifications
You must be signed in to change notification settings - Fork 354
repo state tests prior to merge #392
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(apologies for the CI churn)
1.) Install gnu-sed on the macOS instances 2.) Remember that which(1) sets a non-zero exit code if it doesn't find each item you've specified. In this case we're searching for 'gsed' and 'sed' in the hopes of finding at least one. The ultimate goal is to prefer gsed if it exists as systems with a BSD userland tend to install GNU tools with a 'g' prefix such that GNU sed is accessible as 'gsed'. GNU sed lets us easily (in a somewhat portable way) edit the second line of a sequence so that we can change one 'pick' to 'edit'. All while pretending to be an interactive text editor to make git happy.
EliahKagan
added a commit
to EliahKagan/gitoxide
that referenced
this pull request
May 4, 2025
- For `openssl`, the `macos-latest` image already has it, and the installation is currently (and has for some time been) a no-op: Warning: openssl@3 3.5.0 is already installed and up-to-date. To reinstall 3.5.0, run: brew reinstall openssl@3 The workflow has attempted to install `openssl` explicitly via `brew` since a7db791 (GitoxideLabs#295). This was described as an effort to fix the build on macOS 11, and from context it looks like it may have been useful or even necessary at the time. `macos-latest` is currently macOS 15, however. More significantly, `openssl` on the macOS CI runners had been version 1.1, but it is version 3 since actions/runner-images#10851. The images seem to keep a current version. If that changes, then it might once again be a good idea to upgrade via `brew`, but might not. - For `gnu-sed`, we are not using it. The executable was being set up on CI only as `gsed`: ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/manifests/4.9-3 ==> Fetching gnu-sed ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/blobs/sha256:829d21105387351f6c7b07cd845d7e234c1a460ea5e50cc2f5dbcface45e378d ==> Pouring gnu-sed--4.9.arm64_sonoma.bottle.3.tar.gz ==> Caveats GNU "sed" has been installed as "gsed". If you need to use it as "sed", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH" ==> Summary 🍺 /opt/homebrew/Cellar/gnu-sed/4.9: 13 files, 616.4KB But no references to `gsed` remain. Specifically, in GitoxideLabs#392, `gsed` was used in `make_rebase_i_repo.sh` as of ac3c8c7. But it was removed in fc61c0d, which was later in that same PR. There have been no uses of `gsed` in this project since then.
EliahKagan
added a commit
to EliahKagan/gitoxide
that referenced
this pull request
May 4, 2025
- For `openssl`, the `macos-latest` image already has it, and the installation is currently (and has for some time been) a no-op: Warning: openssl@3 3.5.0 is already installed and up-to-date. To reinstall 3.5.0, run: brew reinstall openssl@3 The workflow has attempted to install `openssl` explicitly via `brew` since a7db791 (GitoxideLabs#295). This was described as an effort to fix the build on macOS 11, and from context it looks like it was useful, and likely necessaryn at the time. But `macos-latest` is currently macOS 14 or higher. More significantly, `openssl` on the macOS CI runners had been version 1.1, but it is version 3 since actions/runner-images#10851. The images seem to keep a current version. If that changes, then it might once again be a good idea to upgrade via `brew`, but might not. - For `gnu-sed`, we are not using it. The executable was being set up on CI only as `gsed`: ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/manifests/4.9-3 ==> Fetching gnu-sed ==> Downloading https://ghcr.io/v2/homebrew/core/gnu-sed/blobs/sha256:829d21105387351f6c7b07cd845d7e234c1a460ea5e50cc2f5dbcface45e378d ==> Pouring gnu-sed--4.9.arm64_sonoma.bottle.3.tar.gz ==> Caveats GNU "sed" has been installed as "gsed". If you need to use it as "sed", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH" ==> Summary 🍺 /opt/homebrew/Cellar/gnu-sed/4.9: 13 files, 616.4KB But no references to `gsed` remain. Specifically, in GitoxideLabs#392, `gsed` was used in `make_rebase_i_repo.sh` as of ac3c8c7. But it was removed in fc61c0d, which was later in that same PR. There have been no uses of `gsed` in this project since then.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.