mamba-org / powerloader

BSD 3-Clause "New" or "Revised" License
15 stars 9 forks source link

Missing binary - packaging problem? #135

Closed dhirschfeld-shell closed 1 year ago

dhirschfeld-shell commented 1 year ago
❯ mamba list powerloader
# packages in environment at /opt/mambaforge/envs/base:
#
# Name                    Version                   Build  Channel
powerloader               0.3.0                hb7a213c_1    conda-forge

❯ powerloader --help
powerloader: command not found
❯ curl -fsSL https://anaconda.org/conda-forge/powerloader/0.3.0/download/linux-64/powerloader-0.3.0-h5761f66_1.conda -o powerloader.conda

❯ cph x powerloader.conda

❯ tree ./powerloader
./powerloader
├── include
│   └── powerloader
│       ├── context.hpp
│       ├── curl.hpp
│       ├── download_target.hpp
│       ├── downloader.hpp
│       ├── enums.hpp
│       ├── errors.hpp
│       ├── export.hpp
│       ├── fastest_mirror.hpp
│       ├── fileio.hpp
│       ├── mirror.hpp
│       ├── mirrors
│       │   ├── oci.hpp
│       │   └── s3.hpp
│       ├── powerloader.hpp
│       ├── url.hpp
│       └── utils.hpp
├── info
│   ├── about.json
│   ├── files
│   ├── git
│   ├── has_prefix
│   ├── hash_input.json
│   ├── index.json
│   ├── licenses
│   │   └── LICENSE
│   ├── paths.json
│   ├── recipe
│   │   ├── LICENSE.txt
│   │   ├── build_pl.bat
│   │   ├── build_pl.sh
│   │   ├── conda_build_config.yaml
│   │   ├── meta.yaml
│   │   ├── meta.yaml.template
│   │   └── recipe-scripts-license.txt
│   └── run_exports.json
└── lib
    ├── cmake
    │   └── powerloader
    │       ├── powerloaderConfig.cmake
    │       ├── powerloaderConfigVersion.cmake
    │       ├── powerloaderTargets-noconfig.cmake
    │       └── powerloaderTargets.cmake
    └── libpowerloader.so

9 directories, 36 files
dhirschfeld commented 1 year ago

Looks like the conda-forge build might need -DBUILD_EXE=ON set?

https://github.com/conda-forge/powerloader-feedstock/blob/main/recipe/build_pl.sh

dhirschfeld commented 1 year ago

After a manual build I'm stuck on a failed upload:

❯ powerloader upload -vvv ./dist/conda/linux-64/mypackage-1.2.3-py39h2e92cda_0.conda:org/repo/mypackage:1.2.3 -m oci://ghcr.io
[2022-12-20 00:12:50.011] [info] URL: https://ghcr.io/
[2022-12-20 00:12:50.012] [critical] Could not upload: map::at
dhirschfeld commented 1 year ago

I might be doing something wrong but I'm not sure what - the error message isn't very informative.

If this is just a case of user-error then perhaps this issue can be converted into a feature request for more informative error messages with more context for debugging.

dhirschfeld commented 1 year ago

Seems fixed:

❯ tree ./powerloader-0.5.3-hfd087ad_3
./powerloader-0.5.3-hfd087ad_3
├── bin
│   └── powerloader
├── info
│   ├── about.json
│   ├── files
│   ├── git
│   ├── hash_input.json
│   ├── index.json
│   ├── licenses
│   │   └── LICENSE
│   ├── paths.json
│   ├── recipe
│   │   ├── LICENSE.txt
│   │   ├── bld.bat
│   │   ├── build.sh
│   │   ├── conda_build_config.yaml
│   │   ├── meta.yaml
│   │   ├── meta.yaml.template
│   │   ├── patches
│   │   │   └── 01-fmt.patch
│   │   └── recipe-scripts-license.txt
│   └── run_exports.json
└── lib
    └── libpowerloader.so