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

rebuild with a local source path doesn't work #1166

Open
rgommers opened this issue Nov 6, 2024 · 0 comments
Open

rebuild with a local source path doesn't work #1166

rgommers opened this issue Nov 6, 2024 · 0 comments

Comments

@rgommers
Copy link
Contributor

rgommers commented Nov 6, 2024

When using a local source path with a relative path, rattler-build rebuild (perhaps not completely surprisingly) fails to locate the source because rebuild extracts the recipe from the conda package into a tmpdir, and the relative path no longer works. This bug report is twofold:

  1. If this is a current limitation of rebuild, it would be good to note that in the docs.
  2. The error message is too hard to understand and should be improved.

I tried with this recipe for scipy. It contains:

source:
  path: ../scipy
  use_gitignore: false

After building the package and attempting to use rebuild, this is the error message:

$ rattler-build rebuild -p output/linux-64/scipy-1.15.0.dev0-py312h738df08_0.conda 
 Rebuilding output/linux-64/scipy-1.15.0.dev0-py312h738df08_0.conda
 Extracted recipe to: "/tmp/.tmp72w1NQ"
Error:   × IO Error: No such file or directory (os error 2)
  ╰─▶ No such file or directory (os error 2)

That same obscure error message occurs if you put a type into the local path and run rattler-build build, something like this in any recipe:

source:
  path: non-existing

It would be really helpful if the error message identified what file or directory cannot be located.

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

1 participant