conda-forge / curl-feedstock

A conda-smithy repository for curl.
BSD 3-Clause "New" or "Revised" License
3 stars 42 forks source link

Broken label for curl 7.55.1-0 has a trailing space #42

Closed jdblischak closed 5 years ago

jdblischak commented 5 years ago

Issue:

I realize this is not the most pressing conda-forge issue, but it is not possible to download the broken version of curl 7.55.1-0 because it's label is "broken " with a trailing space. Anaconda Cloud recommends the following, which fails:

$ conda install -c "conda-forge/label/broken " curl=7.55.1=0
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - curl==7.55.1=0

Current channels:

  - https://conda.anaconda.org/conda-forge/label/broken/linux-64
  - https://conda.anaconda.org/conda-forge/label/broken/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

whereas this works when the label is "broken", e.g. for libiconv 1.15:

$ conda install -c conda-forge/label/broken libiconv


Environment (conda list):

``` $ conda list # packages in environment at /opt/conda: # # Name Version Build Channel asn1crypto 0.24.0 py37_0 ca-certificates 2016.2.28 1 conda-forge/label/broken certifi 2018.10.15 py37_0 cffi 1.11.5 py37he75722e_1 chardet 3.0.4 py37_1 conda 4.5.11 py37_0 conda-env 2.6.0 1 cryptography 2.3.1 py37hc365091_0 idna 2.7 py37_0 libedit 3.1.20170329 h6b74fdf_2 libffi 3.2.1 hd88cf55_4 libgcc-ng 8.2.0 hdf63c60_1 libiconv 1.15 0 conda-forge/label/broken libstdcxx-ng 8.2.0 hdf63c60_1 ncurses 6.1 hf484d3e_0 openssl 1.0.2p h14c3975_0 pip 10.0.1 py37_0 pycosat 0.6.3 py37h14c3975_0 pycparser 2.18 py37_1 pyopenssl 18.0.0 py37_0 pysocks 1.6.8 py37_0 python 3.7.0 hc3d631a_0 readline 7.0 h7b6447c_5 requests 2.19.1 py37_0 ruamel_yaml 0.15.46 py37h14c3975_0 setuptools 40.2.0 py37_0 six 1.11.0 py37_1 sqlite 3.24.0 h84994c4_0 tk 8.6.8 hbc83047_0 urllib3 1.23 py37_0 wheel 0.31.1 py37_0 xz 5.2.4 h14c3975_4 yaml 0.1.7 had09818_2 zlib 1.2.11 ha838bed_2 ```


Details about conda and system ( conda info ):

``` $ conda info active environment : base active env location : /opt/conda shell level : 1 user config file : /root/.condarc populated config files : conda version : 4.5.11 conda-build version : not installed python version : 3.7.0.final.0 base environment : /opt/conda (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/linux-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/linux-64 https://repo.anaconda.com/pkgs/pro/noarch package cache : /opt/conda/pkgs /root/.conda/pkgs envs directories : /opt/conda/envs /root/.conda/envs platform : linux-64 user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Linux/4.15.0-39-generic debian/9 glibc/2.24 UID:GID : 0:0 netrc file : None offline mode : False ```
jakirkham commented 5 years ago

Think it's fixed now.

$ conda create -n curl_broken_test -c conda-forge/label/broken curl=7.55.1=0
Solving environment: done

## Package Plan ##

  environment location: /zopt/conda3/envs/curl_broken_test

  added / updated specs: 
    - curl==7.55.1=0

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2016.2.28  |                1         158 KB  conda-forge/label/broken
    curl-7.55.1                |                0         726 KB  conda-forge/label/broken
    libssh2-1.8.0              |       h5b517e9_3         232 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         1.1 MB

The following NEW packages will be INSTALLED:

    ca-certificates: 2016.2.28-1       conda-forge/label/broken
    curl:            7.55.1-0          conda-forge/label/broken
    krb5:            1.14.6-0          conda-forge             
    libssh2:         1.8.0-h5b517e9_3  conda-forge             
    openssl:         1.0.2p-h470a237_1 conda-forge             
    zlib:            1.2.11-h470a237_3 conda-forge             

Proceed ([y]/n)?
jdblischak commented 5 years ago

Confirmed. Thanks @jakirkham!

$ conda create --dry-run -n curl_broken_test -c conda-forge/label/broken -c conda-forge curl
Solving environment: done

## Package Plan ##

  environment location: /opt/conda/envs/curl_broken_test

  added / updated specs: 
    - curl

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    krb5-1.14.6                |                0         4.0 MB  conda-forge
    libssh2-1.8.0              |       h5b517e9_3         225 KB  conda-forge
    zlib-1.2.11                |       h470a237_3          93 KB  conda-forge
    ca-certificates-2016.2.28  |                1         158 KB  conda-forge/label/broken
    openssl-1.0.2p             |       h470a237_1         3.1 MB  conda-forge
    libgcc-ng-7.2.0            |       hdf63c60_3         6.1 MB  conda-forge
    curl-7.55.1                |                0         772 KB  conda-forge/label/broken
    ------------------------------------------------------------
                                           Total:        14.4 MB

The following NEW packages will be INSTALLED:

    ca-certificates: 2016.2.28-1       conda-forge/label/broken
    curl:            7.55.1-0          conda-forge/label/broken
    krb5:            1.14.6-0          conda-forge             
    libgcc-ng:       7.2.0-hdf63c60_3  conda-forge             
    libssh2:         1.8.0-h5b517e9_3  conda-forge             
    openssl:         1.0.2p-h470a237_1 conda-forge             
    zlib:            1.2.11-h470a237_3 conda-forge             

DryRunExit: Dry run exiting