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

Missing binary - packaging problem? #135

Closed
dhirschfeld-shell opened this issue Dec 19, 2022 · 4 comments
Closed

Missing binary - packaging problem? #135

dhirschfeld-shell opened this issue Dec 19, 2022 · 4 comments

Comments

@dhirschfeld-shell
Copy link

❯ 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
Copy link
Contributor

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
Copy link
Contributor

dhirschfeld commented Dec 19, 2022

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
Copy link
Contributor

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
Copy link
Contributor

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

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

No branches or pull requests

2 participants