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

file_name runtime bug in v1 spec conda-forge feedstock #1471

Open
jeremyleung521 opened this issue Mar 5, 2025 · 3 comments
Open

file_name runtime bug in v1 spec conda-forge feedstock #1471

jeremyleung521 opened this issue Mar 5, 2025 · 3 comments

Comments

@jeremyleung521
Copy link

Hi!

When I tried to run a feedstock using v1 spec recipe for conda-forge feedstocks, the file_name keyword (example) is actually preventing pip from finding the source files (example). It is reproducible locally on different feedstocks (mdtraj-feedstock, westpa-feedstock) and removing that option from the yaml config solves the problem. @wolfv mentioned on Zulipchat that it's because the file is not untarred when there is a file_name with a .tar.gz but it is untarred when that option absent. This is counterintuitive and wasn't the case in v0.

It would be great if it's clarified/reversed or (at least) if a warning is emitted.

Thanks!

@jeremyleung521 jeremyleung521 changed the title file_name runtime bug in conda-forge feedstock file_name runtime bug in v1 spec conda-forge feedstock Mar 5, 2025
@wolfv
Copy link
Member

wolfv commented Mar 14, 2025

Hi @jeremyleung521 - can you elaborate the use case you have for file_name?
If you want the files in a different directory, you can use the target_directory key.

@jeremyleung521
Copy link
Author

Hi @jeremyleung521 - can you elaborate the use case you have for file_name?
If you want the files in a different directory, you can use the target_directory key.

This is something before my time as a maintainer, but I think it's mostly a leftover from when it was a necessary field. I'm happy to remove it (which doesn't change anything), but it's just odd that it's not behaving as it should (i.e. same as previous behavior; being explicit with the default shouldn't modify behavior).

Here's the doc about the option:
https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html#filename

@wolfv
Copy link
Member

wolfv commented Mar 15, 2025

Yeah, we can add that more clearly to the docs ...

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

3 participants