pmbootstrap/test
Oliver Smith a0cea6255a
pmb.config: mount go caching directories
Always set GOCACHE during build and let it point to pmbootstrap's work
dir. This has a similar effect as using ccache for C/C++.

Set GOMODCACHE conditionally: this is for caching the go modules (git
repositories) that get cloned during a build if they are not bundled
with the source. Usually APKBUILDs should cache them, but when using
pmbootstrap build --src, they would get downloaded over and over again.
Set GOMODCACHE automatically for --src and allow enabling/disabling this
manually with new --go-mod-cache / --no-go-mod-cache.

This speeds up multiple iterations of building the same package
significantly. I'm using it for:

$ pmbootstrap build postmarketos-mkinitfs --src=...

I've verified that using the same GOCACHE dir for multiple architectures
doesn't result in build artifacts for the wrong arch getting used.

Reviewed-by: Clayton Craft <clayton@craftyguy.net>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230223064743.1773-1-ollieparanoid@postmarketos.org%3E
2023-02-26 19:37:30 +01:00
..
pmb_test Bump copyright to 2023 2023-01-22 19:18:06 +01:00
testdata pmb.aportgen.gcc: remove !tracedeps option 2022-10-05 20:44:31 +02:00
pytest.ini CI: drop support for cached venv + ci runner (MR 2080) 2021-07-04 22:51:53 +02:00
test_apk.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_apk_static.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_aportgen.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_aportgen_device_wizard.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_arguments.py pmb.parse.arguments: add zap --all flag (MR 2117) 2022-02-28 17:09:21 +03:00
test_bootimg.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_build_is_necessary.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_build_package.py pmb.config: mount go caching directories 2023-02-26 19:37:30 +01:00
test_chroot_interactive_shell.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_init.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_pmaports.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_user.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_config_workdir.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_cross_compile_distcc.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_crossdirect.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_envkernel.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_file.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_folder_size.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_frontend.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_git.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_lint.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_package.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_pmaports.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_repo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_repo_missing.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_status.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_helpers_ui.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_install.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_kconfig_check.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_keys.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_mount.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_newapkbuild.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_apkbuild.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_apkindex.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_depends.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_parse_deviceinfo.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_pkgrel_bump.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_qemu_running_processes.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_questions.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_run_core.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_shell_escape.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_version.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
test_version_validate.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00