[opensuse-buildservice] Downloading sources before the build
At the moment all of the packages I've seen are storing the sources next to spec file. But some of the spec files are specifying Source0 as http url. So here is the question: is it possible to actually download the sources before the build, and why not? :) I don't know which is better for OBS, storing all the sources all the time or spending network resources to download them (and maybe cache) for short periods of time. -- Regards, Stas -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mittwoch, 1. April 2015, 18:45:18 wrote Stanislav Baiduzhyi:
At the moment all of the packages I've seen are storing the sources next to spec file. But some of the spec files are specifying Source0 as http url.
So here is the question: is it possible to actually download the sources before the build, and why not? :)
not before each build, but you can let obs download it after source commit. However, it will still go to the source repository for good reasons: - servers or files may go away - files with the same name may change - evil servers might deliver a different file to our server then to anyone else. in any case, we want to be able to find out what was used for a build job afterwards.
I don't know which is better for OBS, storing all the sources all the time or spending network resources to download them (and maybe cache) for short periods of time.
-- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wednesday 01 April 2015 18:53:42 Adrian Schröter wrote:
On Mittwoch, 1. April 2015, 18:45:18 wrote Stanislav Baiduzhyi:
At the moment all of the packages I've seen are storing the sources next to spec file. But some of the spec files are specifying Source0 as http url.
So here is the question: is it possible to actually download the sources before the build, and why not? :)
not before each build, but you can let obs download it after source commit.
However, it will still go to the source repository for good reasons: - servers or files may go away - files with the same name may change - evil servers might deliver a different file to our server then to anyone else.
That makes sense. Thank you for the explanation! -- Regards, Stas -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Stanislav Baiduzhyi