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

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

Open
corneliusroemer opened this issue Jun 27, 2024 · 1 comment
Labels

Comments

@corneliusroemer
Copy link
Member

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
Copy link
Member Author

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

git fetch --force origin main:main
git ls-tree --name-only main -- . | xargs -I {} sh -c "rm -rf {} && echo Removing recipe: {}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant