conda-forge / staged-recipes

A place to submit conda recipes before they become fully fledged conda-forge feedstocks
https://conda-forge.org
BSD 3-Clause "New" or "Revised" License
689 stars 4.72k forks source link

build-locally.py fails for osx with `fatal: couldn't find remote ref main` #26782

Open corneliusroemer opened 5 days ago

corneliusroemer commented 5 days ago

Bug:

Now trying out build-locally.py for mac osx, and getting a different error now:

+ echo 'Finding recipes merged in main and removing them from the build.'
Finding recipes merged in main and removing them from the build.
+ pushd ./recipes
+ git fetch --force origin main:main
fatal: couldn't find remote ref main
Traceback (most recent call last):
  File "/Users/corneliusromer/code/staged-recipes/build-locally.py", line 101, in <module>
    main()
  File "/Users/corneliusromer/code/staged-recipes/build-locally.py", line 97, in main
    run_osx_build(ns)
  File "/Users/corneliusromer/code/staged-recipes/build-locally.py", line 38, in run_osx_build
    subprocess.check_call([script])
  File "/opt/homebrew/Caskroom/miniforge/base/envs/py11/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['.scripts/run_osx_build.sh']' returned non-zero exit status 128.

@conda-forge/staged-recipes

corneliusroemer commented 5 days ago

Trying commenting out the offending lines, as I did in #26779

https://github.com/conda-forge/staged-recipes/blob/84128e0f8947c57a81d056e2f4ff96c76bc23472/.scripts/run_osx_build.sh#L63-L64