-
Notifications
You must be signed in to change notification settings - Fork 986
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
tools.files.get doesn't work in export_sources(). [bug] #16032
Comments
Hi @IceJohnS Thanks for your report. I'd say this is intended behavior, at least at the moment. The Maybe you are looking for the source-backup feature? If you haven't yet, please have a look to https://blog.conan.io/2023/10/03/backup-sources-feature.html. It can store the sources from the internet in your own server, to not rely on internet sources, which I'd say it is more or less your concern when you are trying to capture those sources as recipe "export-sources". I'll have a look anyway to the |
If we assume that only |
#16034 got merged, so it will be in next Conan 2.3 However the above recommendations might be worth checking. There are several reasons why the "download code at export time" might not be the best approach. Another one is that you will never be able to use the "local flow", in which it is possible to do |
Describe the bug
We're trying to use
tools.files.get
to download external source to bundle it with the recipe during export. Theget
call fails whentools.files.download
tries to readconanfile.conf
which isn't populated.How to reproduce it
We removed the
source()
method from a conan-center recipe and appended the following toexport_sources()
.The text was updated successfully, but these errors were encountered: