flatpak-builder/src
Denis Ollier 7bd6440b75 Don't prune build stages from cache with --{export,finish}-only
A commonly used CI workflow [1] is to chain the following steps:

    > flatpak-builder --stop-at=<module>
    > flatpak build <commands to build module from local checkout>
    > flatpak-builder --finish-only

Unfortunately, the last step always purge all the compilation cache
created by the first one. All build steps are marked unused by default
and since they are skipped due to the option --finish-only, all of them
are always pruned by the gc function.

As a result, flatpak-builder cache becomes useless, a full compilation
is always performed.

Improve this by not cleaning unused stages when no compilation is done
by flatpak-builder (i.e: when flatpak-builder is used with --export-only
or --finish-only option).

[1]: https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak
2018-06-11 15:47:39 +02:00
..
Makefile.am.inc Load SDK configuration file. 2018-05-07 15:26:15 +00:00
builder-cache.c Don't prune build stages from cache with --{export,finish}-only 2018-06-11 15:47:39 +02:00
builder-cache.h Don't prune build stages from cache with --{export,finish}-only 2018-06-11 15:47:39 +02:00
builder-context.c Use libcurl for HTTP downloads as well 2018-05-15 10:16:15 +00:00
builder-context.h Add support for FTP sources using libcurl 2018-05-14 09:54:39 +00:00
builder-extension.c Support using app-extensions during the build 2018-04-23 07:06:07 +00:00
builder-extension.h Support using app-extensions during the build 2018-04-23 07:06:07 +00:00
builder-flatpak-utils.c Make libcurl return error on HTTP response >= 400 2018-05-28 08:05:51 +00:00
builder-flatpak-utils.h flatpak-utils: Remove undefined functions 2018-05-16 08:12:37 +00:00
builder-git.c git: Look for the correct cache 2018-02-16 11:39:09 +01:00
builder-git.h git: Always deep clone for old git versions if bundling sources 2017-11-06 12:42:36 +00:00
builder-main.c Don't prune build stages from cache with --{export,finish}-only 2018-06-11 15:47:39 +02:00
builder-manifest.c Fix C99 warning on rhel7 2018-05-14 15:53:20 +02:00
builder-manifest.h When using --download-only skip some checks 2018-05-03 15:43:41 +00:00
builder-module.c Use 'libdir' build option. 2018-05-07 15:26:15 +00:00
builder-module.h Add extra-data source type 2017-09-29 07:01:53 +00:00
builder-options.c BuildOptions: Drop sdk-default-override 2018-05-14 08:43:56 +00:00
builder-options.h Add 'libdir' as build option. 2018-05-07 15:26:15 +00:00
builder-post-process.c Automatically compress debug info unless no-debuginfo-compression is set 2017-10-05 18:11:21 +00:00
builder-post-process.h Automatically compress debug info unless no-debuginfo-compression is set 2017-10-05 18:11:21 +00:00
builder-sdk-config.c Load SDK configuration file. 2018-05-07 15:26:15 +00:00
builder-sdk-config.h Load SDK configuration file. 2018-05-07 15:26:15 +00:00
builder-source-archive.c Add more checksum types for files and archives (#75) 2017-12-07 15:40:04 +01:00
builder-source-archive.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-bzr.c utils: Add flags argument to flatpak_spawn 2017-10-17 10:31:28 +00:00
builder-source-bzr.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-dir.c Add directory source 2018-04-26 07:15:38 +00:00
builder-source-dir.h Add directory source 2018-04-26 07:15:38 +00:00
builder-source-extra-data.c Add extra-data source type 2017-09-29 07:01:53 +00:00
builder-source-extra-data.h Add extra-data source type 2017-09-29 07:01:53 +00:00
builder-source-file.c Rename download_uri() to download_data_uri() 2018-05-16 08:12:37 +00:00
builder-source-file.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-git.c Add --no-shallow-clone for git mirroring 2018-03-27 13:41:42 +00:00
builder-source-git.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-patch.c Move common/flatpak-utils.* to src/builder-flatpak-utils.* 2017-08-25 09:36:49 +02:00
builder-source-patch.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-script.c Move common/flatpak-utils.* to src/builder-flatpak-utils.* 2017-08-25 09:36:49 +02:00
builder-source-script.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-shell.c utils: add GSubprocessFlags parameter 2018-01-12 10:06:12 +00:00
builder-source-shell.h Move builder/ to src/ 2017-08-25 09:30:53 +02:00
builder-source-svn.c Add SVN source type 2018-04-25 17:07:44 +00:00
builder-source-svn.h Add SVN source type 2018-04-25 17:07:44 +00:00
builder-source.c Add directory source 2018-04-26 07:15:38 +00:00
builder-source.h Add extra-data source type 2017-09-29 07:01:53 +00:00
builder-utils.c Print more useful cURL error messages 2018-06-08 12:29:37 +02:00
builder-utils.h Use libcurl for HTTP downloads as well 2018-05-15 10:16:15 +00:00