conda-forge / conda-forge-ci-setup-feedstock

A conda-smithy repository for conda-forge-ci-setup.
BSD 3-Clause "New" or "Revised" License
13 stars 52 forks source link

using git to download source fails on windows with conda-forge-ci-setup > 3.0.3 #172

Closed looooo closed 2 years ago

looooo commented 2 years ago

We run into this issue with the freecad-feedstock. Git is used to download the sources to retrive some version information. The build fails on windows with:

error: remote-curl: usage: git remote-curl <remote> [<url>]
Warning: failed to download source.  If building, will try again after downloading recipe dependencies.

Any ideas how this can be related to the conda-forge-ci-setup version?

This issue was resolved by pinning conda-forge-ci-setup to 3.0.3 in the past. But now there seems to be a dependency conflict and this workaround doesn't work any more.

the traceback:

Traceback (most recent call last):
  File "C:\Miniconda\Scripts\conda-mambabuild-script.py", line 9, in <module>
    sys.exit(main())
  File "C:\Miniconda\lib\site-packages\boa\cli\mambabuild.py", line 164, in main
    call_conda_build(action, config)
  File "C:\Miniconda\lib\site-packages\boa\cli\mambabuild.py", line 137, in call_conda_build
    result = api.build(
  File "C:\Miniconda\lib\site-packages\conda_build\api.py", line 186, in build
    return build_tree(
  File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 3068, in build_tree
    packages_from_this = build(metadata, stats,
  File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 2118, in build
    try_download(m, no_download_source=False, raise_error=True)
  File "C:\Miniconda\lib\site-packages\conda_build\render.py", line 663, in try_download
    raise RuntimeError("Failed to download or patch source. Please see build log for info.")

Might be related to: https://github.com/conda/conda-build/issues/4266

Issue:


Environment (conda list):

``` $ conda list ```


Details about conda and system ( conda info ):

``` $ conda info ```
isuruf commented 2 years ago

Instead of git, use m2-git in build

looooo commented 2 years ago

thanks, this fixed the issue.