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 for bad git path in GHA macos instances. #464

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Sep 19, 2024

From testing problems in #458 and #460, there is an odd problem with GHA macos instances

  • apparently intermittent ?
  • this discussion probably relates
    (this might also indicate that the root problem may soon get a fix?)

In detail, it seems that the latest-good git installation is not (?always?) put on the front of the path when your GHA runs,
but instead an older system git runs by default. Which, possibly, does not have a "git version" command ?

So, for now, this hack pushes a magic directory onto the front of PATH to make the tests run.

(N.B. wheels are OK and unaffected. The problem occurs when doing an editable install of the repo)

@pp-mo pp-mo mentioned this pull request Sep 19, 2024
Copy link
Collaborator

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just gonna merge. Be really good to have this in ASAP

@trexfeathers trexfeathers merged commit 0f32091 into SciTools:main Sep 19, 2024
13 checks passed
stephenworsley added a commit to rcomer/cf-units that referenced this pull request Sep 24, 2024
* main:
  [pre-commit.ci] pre-commit autoupdate (SciTools#425)
  Adopt cython3 (require >=3) (SciTools#460)
  Add repo-review (SciTools#456)
  Fully support Python 3.12 (SciTools#461)
  Bump peter-evans/create-pull-request from 6.0.4 to 7.0.5 (SciTools#459)
  Fix for bad git path in GHA macos instances. (SciTools#464)
  test macos wheels (SciTools#458)
  Bump pypa/cibuildwheel from 2.20.0 to 2.21.1 (SciTools#457)
  Fixes for CI wheels (SciTools#455)
  Dependabot check weekly. (SciTools#439)

# Conflicts:
#	.pre-commit-config.yaml
#	cf_units/tests/test_coding_standards.py
#	pyproject.toml
@pp-mo pp-mo deleted the macos_gitpath branch September 24, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants